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

Unified Diff: chrome/test/data/beforeunload.html

Issue 6904039: Update the URL if the user cancels a beforeunload handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_browsertest.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/beforeunload.html
diff --git a/chrome/test/data/beforeunload.html b/chrome/test/data/beforeunload.html
new file mode 100644
index 0000000000000000000000000000000000000000..4abf52afc7ee9841e6a21faf8384a72a8c240c5a
--- /dev/null
+++ b/chrome/test/data/beforeunload.html
@@ -0,0 +1,11 @@
+<html>
+ <head>
+ <title>Loading...</title>
+ </head>
+ <body onload="attachUnloadListener()">
+ <script>
+ window.onbeforeunload = function(e) { return 'foo'; };
+ </script>
+ <p>Navigate to another page to trigger beforeunload handler.</p>
+ </body>
+</html>
« no previous file with comments | « chrome/browser/browser_browsertest.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698