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

Unified Diff: LayoutTests/inspector-protocol/page/javascriptDialogEvents.html

Issue 158783002: Limit beforeunload returnValue propagation to event handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch tests to use onbeforeunload event handlers instead. Created 6 years, 10 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: LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
diff --git a/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html b/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
index 6af69b3ba5d32bdf59815e34e8e91df4ef6f56aa..28e52121a6cf477d767f00c356ebe9e9d3169b58 100644
--- a/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
+++ b/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
@@ -3,7 +3,7 @@
<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/protocol-test.js"></script>
<script>
-window.addEventListener("beforeunload", onBeforeUnload);
+window.onbeforeunload = onBeforeUnload;
function onBeforeUnload()
{
« no previous file with comments | « LayoutTests/fast/loader/form-submission-after-beforeunload-cancel.html ('k') | Source/bindings/v8/V8AbstractEventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698