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

Unified Diff: LayoutTests/http/tests/misc/resources/reentrant-beforeunload-helper.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 | « LayoutTests/http/tests/misc/reentrant-beforeunload-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/misc/resources/reentrant-beforeunload-helper.html
diff --git a/LayoutTests/http/tests/misc/resources/reentrant-beforeunload-helper.html b/LayoutTests/http/tests/misc/resources/reentrant-beforeunload-helper.html
new file mode 100644
index 0000000000000000000000000000000000000000..e0790a75e7d1d0450d255cf2ee7e50e52c4d21b0
--- /dev/null
+++ b/LayoutTests/http/tests/misc/resources/reentrant-beforeunload-helper.html
@@ -0,0 +1,10 @@
+<html>
+<body>
+<script>
+window.onbeforeunload = function() {
+ window.close();
+ return "This should only appear once.";
+}
+</script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/http/tests/misc/reentrant-beforeunload-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698