layout/reftests/bugs/482659-1c.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <script>
michael@0 5 function doTest() {
michael@0 6 window.frames[0].location =
michael@0 7 'javascript:document.write(""); document.close(); ' +
michael@0 8 'parent.continueTest();'
michael@0 9 }
michael@0 10
michael@0 11 function continueTest() {
michael@0 12 // Do this part async just in case
michael@0 13 setTimeout(function() {
michael@0 14 window.frames[0].document.body.innerHTML =
michael@0 15 "<img src='passouter.png' " +
michael@0 16 "onload='window.parent.document.documentElement.className = &quot;&quot;'>";
michael@0 17 }, 0);
michael@0 18 }
michael@0 19 document.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 20 </script>
michael@0 21 </head>
michael@0 22 <body>
michael@0 23 <iframe></iframe>
michael@0 24 </body>
michael@0 25 </html>
michael@0 26

mercurial