dom/xbl/crashtests/472260-1.xhtml

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 xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     2 <head>
     4 <bindings xmlns="http://www.mozilla.org/xbl">
     5   <binding id="foo"><content><span xmlns="http://www.w3.org/1999/xhtml"/></content></binding>
     6   <binding id="bar"><content></content></binding>
     7 </bindings>
     9 <script type="text/javascript">
    10 // <![CDATA[
    12 function boom()
    13 {
    14   var bo = document.getElementById("bo");
    15   var anon = SpecialPowers.wrap(document).getAnonymousNodes(bo)[0];
    17   bo.style.MozBinding = "url(#bar)";
    19   var fr = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
    20   fr.setAttribute("src", "javascript:void 0;"); 
    21   anon.appendChild(fr);
    23   document.documentElement.removeAttribute("class");
    24 }
    26 ]]>
    27 </script>
    28 </head>
    30 <body onload="setTimeout(boom, 100);">
    32 <span style="-moz-binding: url(#foo)" id="bo"></span>
    34 </body>
    35 </html>

mercurial