content/base/crashtests/401993-1.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <html class="reftest-wait">
     2 <head>
     3 <script>
     5 function s()
     6 {
     7   var x = document.getElementById("x");
     8   x.style.MozBinding = "url(401993-1.xml#foo)";
    10   setTimeout(boom, 0);
    12   function boom()
    13   {
    14     var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(x));
    15     if (!nodes) {
    16       setTimeout(boom, 10);
    17       return;
    18     }
    20     var newSpan = document.createElement("span");
    21     newSpan.contentEditable = "true";
    22     nodes[0].appendChild(newSpan);
    23     x.parentNode.removeChild(x);
    25     document.documentElement.removeAttribute("class");
    26   }
    27 }
    28 </script>
    29 </head>
    31 <body onload="s();">
    33 <span contenteditable="true"></span>
    35 <div id="x"></div>
    37 </body>
    38 </html>

mercurial