dom/xbl/crashtests/406900-1.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/xbl/crashtests/406900-1.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
     1.6 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.7 +        xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.8 +        onload="boom();">
     1.9 +
    1.10 +<bindings xmlns="http://www.mozilla.org/xbl">
    1.11 +  <binding id="lit">
    1.12 +    <content>
    1.13 +      <children>
    1.14 +        <xul:hbox/>
    1.15 +      </children>
    1.16 +    </content>
    1.17 +  </binding>
    1.18 +</bindings>
    1.19 +
    1.20 +<script type="text/javascript"> 
    1.21 +
    1.22 +function boom()
    1.23 +{
    1.24 +  var x = document.getElementById("x");
    1.25 +  var anon = document.getAnonymousNodes(x)[0];
    1.26 +  document.documentElement.removeChild(x);
    1.27 +  document.documentElement.appendChild(x);
    1.28 +  var hbox = document.createElement('hbox');
    1.29 +  anon.appendChild(hbox);
    1.30 +}
    1.31 +
    1.32 +</script>
    1.33 +
    1.34 +<hbox id="x" style="-moz-binding: url(#lit)" />
    1.35 +
    1.36 +</window>

mercurial