layout/base/crashtests/379105-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

michael@0 1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
michael@0 2 <head>
michael@0 3 <bindings xmlns="http://www.mozilla.org/xbl">
michael@0 4
michael@0 5 <binding id="x"><content>
michael@0 6 <zzz><children/></zzz>
michael@0 7 </content></binding>
michael@0 8
michael@0 9 <binding id="empty"><content>
michael@0 10 </content></binding>
michael@0 11
michael@0 12 </bindings>
michael@0 13
michael@0 14 <script>
michael@0 15 <![CDATA[
michael@0 16
michael@0 17 var xbltarget;
michael@0 18
michael@0 19 function boom1()
michael@0 20 {
michael@0 21 xbltarget = document.getElementById("xbltarget");
michael@0 22 xbltarget.style.MozBinding = "url('#x')";
michael@0 23 setTimeout(boom2, 0);
michael@0 24 }
michael@0 25
michael@0 26 function boom2()
michael@0 27 {
michael@0 28 var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(xbltarget));
michael@0 29 if (!nodes) {
michael@0 30 setTimeout(boom2, 10);
michael@0 31 return;
michael@0 32 }
michael@0 33 var anox = nodes[0];
michael@0 34 var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "frame")
michael@0 35 frame.src = "data:text/html,<html><body>Hi!</body></html>";
michael@0 36 anox.appendChild(frame);
michael@0 37 xbltarget.style.MozBinding = "url('#empty')";
michael@0 38
michael@0 39 document.documentElement.removeAttribute("class");
michael@0 40 }
michael@0 41
michael@0 42 ]]>
michael@0 43 </script>
michael@0 44 </head>
michael@0 45 <body onload="boom1()">
michael@0 46 <div id="xbltarget"></div>
michael@0 47 </body>
michael@0 48 </html>

mercurial