blob: a8d066e45d099606651e592fa1042b97aa39954b [file] [log] [blame]
<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 https://chromium.googlesource.com/chromium/src/+/8b913deb7165a50daa13e6b64300e550cf62a47e, 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>