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.

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

mercurial