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

Unified Diff: LayoutTests/http/tests/misc/reentrant-beforeunload.html

Issue 703383002: Prevent firing BeforeUnloadEvents re-entrantly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | LayoutTests/http/tests/misc/reentrant-beforeunload-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/misc/reentrant-beforeunload.html
diff --git a/LayoutTests/http/tests/misc/reentrant-beforeunload.html b/LayoutTests/http/tests/misc/reentrant-beforeunload.html
new file mode 100644
index 0000000000000000000000000000000000000000..fb5acd5abd0e2c83c84de2f494859299c9e0be62
--- /dev/null
+++ b/LayoutTests/http/tests/misc/reentrant-beforeunload.html
@@ -0,0 +1,20 @@
+<html>
+<body>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
+}
+
+var w = window.open("resources/reentrant-beforeunload-helper.html");
+w.onload = function() {
+ setTimeout(function() {
+ w.close();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+};
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/reentrant-beforeunload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698