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

Side by Side Diff: LayoutTests/http/tests/history/reload-during-load-after-load-event.html

Issue 17519002: Reland r152781 - "Fix a history bug where a reload is given a standard load's history entry." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/http/tests/history/reload-during-load-after-load-event-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 <body onload="setTimeout(test, 0);">
3 This tests starting a new resource load after the load event has finished, then reloading while that load is still in progress.
4 Due to a regression in http://src.chromium.org/viewvc/blink?revision=148684&view =revision, we would overwrite the load type such that
5 the reload will still be executed correctly, but the history entry will be creat ed as though it was a standard load.
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
10 }
11
12 function test() {
13 if (window.localStorage.getItem("finish-during-reload") == null) {
14 window.localStorage.setItem("finish-during-reload", "reload")
15 var img = document.createElement("img");
16 img.src = "resources/slow-image.php";
17 document.body.appendChild(img);
18 if (window.internals)
19 internals.forceReload(false);
20 } else {
21 window.localStorage.clear();
22 if (window.testRunner) {
23 testRunner.dumpBackForwardList();
24 testRunner.notifyDone();
25 }
26 }
27 }
28 </script>
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/history/reload-during-load-after-load-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698