content/xbl/crashtests/406900-1.xul
author Ms2ger <ms2ger@gmail.com>
Tue, 07 Feb 2012 21:31:29 +0100
changeset 86704 dbe412dc3076a9de5b16db0a20b9c5a890bb07b1
parent 11201 b4b0d7c62720ccbad885a739ff7235ddc20b8876
permissions -rw-r--r--
No bug - Propagate false return value from xpc_qsThrowMethodFailedWithDetails; r=bz

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="boom();">

<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="lit">
    <content>
      <children>
        <xul:hbox/>
      </children>
    </content>
  </binding>
</bindings>

<script type="text/javascript"> 

function boom()
{
  var x = document.getElementById("x");
  var anon = document.getAnonymousNodes(x)[0];
  document.documentElement.removeChild(x);
  document.documentElement.appendChild(x);
  var hbox = document.createElement('hbox');
  anon.appendChild(hbox);
}

</script>

<hbox id="x" style="-moz-binding: url(#lit)" />

</window>