content/base/crashtests/354645-1.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/354645-1.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();" class="reftest-wait">
     1.5 +
     1.6 +<script type="text/javascript">
     1.7 +
     1.8 +var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
     1.9 +
    1.10 +function boom()
    1.11 +{
    1.12 +  var A = document.getElementById("A");
    1.13 +  var B = document.createElementNS(XUL_NS, "tabs");
    1.14 +  var C = document.createElementNS(XUL_NS, "hbox");
    1.15 +  B.appendChild(C);
    1.16 +  A.appendChild(B);
    1.17 +}
    1.18 +
    1.19 +function remove(n)
    1.20 +{
    1.21 +  n.parentNode.removeChild(n);
    1.22 +}
    1.23 +
    1.24 +</script>
    1.25 +
    1.26 +<hbox id="A" onselect="remove(event.originalTarget); document.documentElement.removeAttribute('class');"></hbox>
    1.27 +
    1.28 +</window>

mercurial