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

Unified Diff: content/test/data/navigation_controller/beforeunload_dialog.html

Issue 2366693006: Don't show dialogs from swapped out frames. (Closed)
Patch Set: now thread safe Created 4 years, 3 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
Index: content/test/data/navigation_controller/beforeunload_dialog.html
diff --git a/content/test/data/navigation_controller/beforeunload_replacestate_2.html b/content/test/data/navigation_controller/beforeunload_dialog.html
similarity index 62%
copy from content/test/data/navigation_controller/beforeunload_replacestate_2.html
copy to content/test/data/navigation_controller/beforeunload_dialog.html
index 0a65d257d3df1119ef641a1daeb5f3c5e2712e48..8e3c825e629fa5f5d2a62ed14fb1aad72c51bf73 100644
--- a/content/test/data/navigation_controller/beforeunload_replacestate_2.html
+++ b/content/test/data/navigation_controller/beforeunload_dialog.html
@@ -2,7 +2,9 @@
<head>
<script>
window.addEventListener("beforeunload", function (event) {
- window.history.replaceState(null, "", "beforeunload_replacestate_2.html");
+ setTimeout(function() {
+ window.alert("hi");
+ }, 0);
});
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698