Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write.html

Issue 1415773002: Don't change Document load progress in any page dismissal events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/alert-in-beforeunload-document-write-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698