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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <body>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 }
7
8 window.onload = function() {
9 setTimeout(function() {
10 location.href = "#1";
11 location.replace("#2");
12 history.back();
13 }, 0);
14 };
15
16 window.onhashchange = function() {
17 if (location.hash != "")
18 return;
19 document.body.appendChild(document.createTextNode("PASS"));
20 if (window.testRunner)
21 testRunner.notifyDone();
22 }
23 </script>
24 </body>
OLDNEW
« 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