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

Side by Side 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: aw Created 3 years, 8 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script>
5 navigator.sendBeacon('/reload_post.html', 'bacon');
6 </script>
7 </head> 4 </head>
8 <body> 5 <body>
9 </body> 6 </body>
7 <script>
8 window.onbeforeunload=function(e){
9 return 'foo';
10 }
11 </script>
10 </html> 12 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698