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

Unified Diff: LayoutTests/fast/loader/back-after-same-document-location-replace.html

Issue 267613003: location.replace() breaks same-document back/forward navigations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | LayoutTests/fast/loader/back-after-same-document-location-replace-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/loader/back-after-same-document-location-replace.html
diff --git a/LayoutTests/fast/loader/back-after-same-document-location-replace.html b/LayoutTests/fast/loader/back-after-same-document-location-replace.html
new file mode 100644
index 0000000000000000000000000000000000000000..3530db6d14e8f6b4cce89f98323911caf73d06db
--- /dev/null
+++ b/LayoutTests/fast/loader/back-after-same-document-location-replace.html
@@ -0,0 +1,24 @@
+<body>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+window.onload = function() {
+ setTimeout(function() {
+ location.href = "#1";
+ location.replace("#2");
+ history.back();
+ }, 0);
+};
+
+window.onhashchange = function() {
+ if (location.hash != "")
+ return;
+ document.body.appendChild(document.createTextNode("PASS"));
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/loader/back-after-same-document-location-replace-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698