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.

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

mercurial