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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 window.addEventListener("beforeunload", function (event) { 4 window.addEventListener("beforeunload", function (event) {
5 window.history.replaceState(null, "", "beforeunload_replacestate_2.html"); 5 setTimeout(function() {
6 window.alert("hi");
7 }, 0);
6 }); 8 });
7 </script> 9 </script>
8 </head> 10 </head>
9 <body> 11 <body>
10 </body> 12 </body>
11 </html> 13 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698