content/base/crashtests/401993-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/401993-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +<html class="reftest-wait">
     1.5 +<head>
     1.6 +<script>
     1.7 +
     1.8 +function s()
     1.9 +{
    1.10 +  var x = document.getElementById("x");
    1.11 +  x.style.MozBinding = "url(401993-1.xml#foo)";
    1.12 +  
    1.13 +  setTimeout(boom, 0);
    1.14 +  
    1.15 +  function boom()
    1.16 +  {
    1.17 +    var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(x));
    1.18 +    if (!nodes) {
    1.19 +      setTimeout(boom, 10);
    1.20 +      return;
    1.21 +    }
    1.22 +
    1.23 +    var newSpan = document.createElement("span");
    1.24 +    newSpan.contentEditable = "true";
    1.25 +    nodes[0].appendChild(newSpan);
    1.26 +    x.parentNode.removeChild(x);
    1.27 +    
    1.28 +    document.documentElement.removeAttribute("class");
    1.29 +  }
    1.30 +}
    1.31 +</script>
    1.32 +</head>
    1.33 +
    1.34 +<body onload="s();">
    1.35 +
    1.36 +<span contenteditable="true"></span>
    1.37 +
    1.38 +<div id="x"></div>
    1.39 +
    1.40 +</body>
    1.41 +</html>

mercurial