layout/reftests/bugs/474472-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 <body>
michael@0 4 <iframe id="foo" src="data:text/html,<body bgcolor='red'>FAIL</body>"></iframe>
michael@0 5 <script type="text/javascript">
michael@0 6 // Globals
michael@0 7 var foo = document.getElementById('foo');
michael@0 8 var win = foo.contentWindow;
michael@0 9
michael@0 10 // Start the chain of execution when iframe's window loads
michael@0 11 win.onload = iframeWindowLoaded;
michael@0 12
michael@0 13 function iframeWindowLoaded() {
michael@0 14 setTimeout("tweak()", 0);
michael@0 15 }
michael@0 16 function tweak() {
michael@0 17 win.location ="data:text/html,<body bgcolor='lime'>PASS</body>";
michael@0 18 foo.onload = snapshot;
michael@0 19 }
michael@0 20 function snapshot() {
michael@0 21 document.documentElement.className = '';
michael@0 22 }
michael@0 23 </script>
michael@0 24 </body>
michael@0 25 </html>

mercurial