2 <html class=
"reftest-wait">
4 <iframe id=
"foo" src=
"data:text/html,<body bgcolor='red'>FAIL</body>"></iframe>
5 <script type=
"text/javascript">
7 var foo
= document
.getElementById('foo');
8 var win
= foo
.contentWindow
;
10 // Start the chain of execution when iframe's window loads
11 win
.onload
= iframeWindowLoaded
;
13 function iframeWindowLoaded() {
14 setTimeout("tweak()", 0);
17 win
.location
="data:text/html,<body bgcolor='lime'>PASS</body>";
18 foo
.onload
= snapshot
;
21 document
.documentElement
.className
= '';