no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / reftests / bugs / 459443-1.html
blobc2d6412296764acf4035b6f33d5c64866e14d57c
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <body onload="loaded()">
4 <iframe id="foo"></iframe>
5 <script type="text/javascript">
6 function loaded() {
7 dump("459443-1.html: Entering loaded()\n");
8 var n = document.getElementById('foo');
10 // Just to detect if/when the iframe might be firing its load event
11 // before we set up its final className-clearing load event handler:
12 n.addEventListener("load",
13 function() {
14 dump("459443-1.html: Entering n initial " +
15 "no-op load callback\n");});
17 var f = n.contentWindow;
18 f.document.open();
19 f.document.write('');
20 f.onload = function() {
21 dump("459443-1.html: Entering f.onload callback\n");
22 f.document.designMode = 'on';
23 setTimeout(function() {
24 dump("459443-1.html: Entering setTimeout callback\n");
25 f.document.designMode='on';
26 f.location = 'data:text/html;charset=utf-8,<body>FAIL<script>document.body.innerHTML="PASS"<\/script>';
27 n.addEventListener("load",
28 function() {
29 dump("459443-1.html: Entering n final " +
30 "load callback; clearing className\n");
31 document.documentElement.className = ''; });
32 }, 0);
34 f.document.close();
36 </script>
37 </body>
38 </html>