OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <script> | |
4 function runTest() | |
5 { | |
6 if (window.testRunner) { | |
7 testRunner.waitUntilDone(); | |
8 testRunner.dumpAsText(); | |
9 document.querySelector('iframe').onload = function () { testRunner.notif yDone(); }; | |
10 } | |
11 window[0].onbeforeunload = function() { window[0].document.write("<script>al ert('hello world!');</scr" + "ipt>"); } | |
12 window[0].location = 'data:text/plain,Done!'; | |
13 } | |
14 </script> | |
15 <body onload="runTest()"> | |
16 <p>Test that alert() inside a document.write() during a beforeunload handler doe s not confuse the modal dialog blocker. This test passes if no alert() dialogs a re seen. | |
17 <iframe> | |
18 </iframe> | |
19 </body> | |
20 </html> | |
OLD | NEW |