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

Side by Side Diff: LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html

Issue 26216003: Fix History.{push,replace}State handling of null 'url' argument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/replacestate-base-no-url-argument-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 <html>
2 <head>
3 <base id="base">
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9
10 var url = window.location.href;
11 url = url.slice(0, url.lastIndexOf('/') + 1) + "resources/replacestate-base-no-u rl-argument.html";
12 document.getElementById("base").href = url;
13
14 window.onload = function() {
15 if (history.state === null) {
16 window.history.replaceState({ replaced: true }, {});
17 window.history.go(0);
18 } else if (window.testRunner) {
19 testRunner.notifyDone();
20 }
21 }
22
23 </script>
24 </head>
25 <body>
26 PASS: Navigation to document URL.
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/replacestate-base-no-url-argument-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698