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

Unified Diff: LayoutTests/fast/history/resources/replaceState-during-beforeunload.html

Issue 1159723003: Don't reuse HistoryItems for multiple navigations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 6 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/fast/history/resources/replaceState-during-beforeunload.html
diff --git a/LayoutTests/fast/history/resources/replaceState-during-beforeunload.html b/LayoutTests/fast/history/resources/replaceState-during-beforeunload.html
new file mode 100644
index 0000000000000000000000000000000000000000..232859e3d43df092f0a7f6ba2703330cc623a26b
--- /dev/null
+++ b/LayoutTests/fast/history/resources/replaceState-during-beforeunload.html
@@ -0,0 +1,11 @@
+<body>
+<div style="height: 2000px;"></div>
+<script>
+history.back();
+
+window.onbeforeunload = function() {
+ history.replaceState({foo:'bar'}, null, "#");
+ window.scrollTo(0, 1000);
+}
+</script>
+</body>
« no previous file with comments | « LayoutTests/fast/history/replaceState-onbeforeunload-scroll-state-expected.txt ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698