|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=479143 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 411103</title> |
|
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
10 </head> |
|
11 <body> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=479143">Mozilla Bug 479143</a> |
|
13 <p id="display"></p> |
|
14 <div id="content" style="display: none"></div> |
|
15 |
|
16 <pre id="test"> |
|
17 <script class="testbody" type="text/javascript"> |
|
18 |
|
19 SimpleTest.waitForExplicitFinish(); |
|
20 |
|
21 setTimeout(function() { |
|
22 var interval = setInterval(function() { var i = 0; i++; }, 10); |
|
23 |
|
24 var xhr = new XMLHttpRequest(); |
|
25 xhr.open("GET", "test_bug479143.html", false); |
|
26 xhr.send(null); |
|
27 |
|
28 window.showModalDialog("javascript:" + |
|
29 "setTimeout(function() { window.close(); }, 1000);", |
|
30 null); |
|
31 |
|
32 clearInterval(interval); |
|
33 |
|
34 ok(true, "did not crash"); |
|
35 |
|
36 SimpleTest.finish(); |
|
37 }, 0); |
|
38 |
|
39 </script> |
|
40 </pre> |
|
41 </body> |
|
42 </html> |