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

Side by Side Diff: LayoutTests/fast/history/replaceState-onbeforeunload-scroll-state.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/history/replaceState-onbeforeunload-scroll-state-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 <div style="height: 2000px;"></div>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 function test() {
10 if (sessionStorage.getItem('replaceState-beforeunload') == 'true') {
11 sessionStorage.removeItem("replaceState-beforeunload");
12 document.body.appendChild(document.createTextNode(
13 "Scroll state should not be propagated between unrelated documents: " +
14 (window.scrollY == 0 ? "PASS" : "FAIL")));
15 if (window.testRunner)
16 testRunner.notifyDone();
17 } else {
18 sessionStorage.setItem('replaceState-beforeunload', 'true');
19 location = "resources/replaceState-during-beforeunload.html";
20 }
21 }
22
23 window.onload = function() {
24 setTimeout(test, 0);
25 };
26 </script>
27 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/history/replaceState-onbeforeunload-scroll-state-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698