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

Unified Diff: content/test/data/navigation_controller/beforeunload_replacestate_2.html

Issue 1976573002: Only use pending navigation params for browser-initiated navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: consistency Created 4 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/navigation_controller/beforeunload_replacestate_2.html
diff --git a/content/test/data/navigation_controller/beforeunload_replacestate_2.html b/content/test/data/navigation_controller/beforeunload_replacestate_2.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a65d257d3df1119ef641a1daeb5f3c5e2712e48
--- /dev/null
+++ b/content/test/data/navigation_controller/beforeunload_replacestate_2.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+<script>
+window.addEventListener("beforeunload", function (event) {
+ window.history.replaceState(null, "", "beforeunload_replacestate_2.html");
+});
+</script>
+</head>
+<body>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698