Index: LayoutTests/http/tests/history/reload-during-load-after-load-event.html |
diff --git a/LayoutTests/http/tests/history/reload-during-load-after-load-event.html b/LayoutTests/http/tests/history/reload-during-load-after-load-event.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6610c540ade64b592c63882113428ec9fdfac5c2 |
--- /dev/null |
+++ b/LayoutTests/http/tests/history/reload-during-load-after-load-event.html |
@@ -0,0 +1,30 @@ |
+<html> |
+<body onload="setTimeout(test, 0);"> |
+This tests starting a new resource load after the load event has finished, then reloading while that load is still in progress. |
+Due to a regression in http://src.chromium.org/viewvc/blink?revision=148684&view=revision, we would overwrite the load type such that |
+the reload will still be executed correctly, but the history entry will be created as though it was a standard load. |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+} |
+ |
+function test() { |
+ if (window.localStorage.getItem("finish-during-reload") == null) { |
+ window.localStorage.setItem("finish-during-reload", "reload") |
+ var img = document.createElement("img"); |
+ img.src = "resources/slow-image.php"; |
+ document.body.appendChild(img); |
+ if (window.internals) |
+ internals.forceReload(false); |
+ } else { |
+ window.localStorage.clear(); |
+ if (window.testRunner) { |
+ testRunner.dumpBackForwardList(); |
+ testRunner.notifyDone(); |
+ } |
+ } |
+} |
+</script> |
+</body> |
+</html> |