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

Unified Diff: content/test/data/render_frame_host/beforeunload.html

Issue 2801813005: Only show a beforeunload dialog if a frame has had a user gesture since its load. (Closed)
Patch Set: one last bit Created 3 years, 7 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/render_frame_host/beforeunload.html
diff --git a/third_party/WebKit/Source/web/tests/data/send_beacon.html b/content/test/data/render_frame_host/beforeunload.html
similarity index 59%
copy from third_party/WebKit/Source/web/tests/data/send_beacon.html
copy to content/test/data/render_frame_host/beforeunload.html
index 73a107dab91a9a9663230279a7057f9b5bc3e626..656d433b6c757aaed83112e4694ad22b4e8a8b56 100644
--- a/third_party/WebKit/Source/web/tests/data/send_beacon.html
+++ b/content/test/data/render_frame_host/beforeunload.html
@@ -1,10 +1,12 @@
<!DOCTYPE html>
<html>
<head>
-<script>
- navigator.sendBeacon('/reload_post.html', 'bacon');
-</script>
</head>
<body>
</body>
+<script>
+window.onbeforeunload=function(e){
+ return 'foo';
+}
+</script>
</html>
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | third_party/WebKit/LayoutTests/fast/events/before-unload-reloads.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698