layout/reftests/bugs/445004-1.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       var loads = 0;
     6       function loadStarted() {
     7         ++loads;
     8       }
     9       function loadEnded() {
    10         --loads;
    11         if (loads == 0) {
    12           document.documentElement.className = "";
    13         }
    14       }
    15       loadStarted();
    16       window.onload = function() {
    17         if (location.protocol != 'file:') {
    18           var txt = document.createTextNode('Must be run from file://');
    19           var div = document.createElement("div");
    20           div.appendChild(txt);
    21           document.body.appendChild(div);
    22         }
    23         loadEnded();
    24       }
    25     </script>
    26   </head>  
    27   <body>
    28     <iframe width="500" height="200" src="subdir/445004-subframe.html"
    29             onload="window.frames[0].doIt();"></iframe>
    30   </body>
    31 </html>

mercurial