dom/xbl/crashtests/472260-1.xhtml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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