| Index: third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write.html b/third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..061ec0e021d709a4102581e540831763bffb92e7
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<script>
|
| +function runTest()
|
| +{
|
| + if (window.testRunner) {
|
| + testRunner.waitUntilDone();
|
| + testRunner.dumpAsText();
|
| + document.querySelector('iframe').onload = function () { testRunner.notifyDone(); };
|
| + }
|
| + window[0].onbeforeunload = function() { window[0].document.write("<script>alert('hello world!');</scr" + "ipt>"); }
|
| + window[0].location = 'data:text/plain,Done!';
|
| +}
|
| +</script>
|
| +<body onload="runTest()">
|
| +<p>Test that alert() inside a document.write() during a beforeunload handler does not confuse the modal dialog blocker. This test passes if no alert() dialogs are seen.
|
| +<iframe>
|
| +</iframe>
|
| +</body>
|
| +</html>
|
|
|