blob: 4ef2b4d07d2832db753da316d6792dbcee4c5fbf [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpBackForwardList();
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
onload = function() {
window.location = 'resources/slow-resource.pl?delay=100';
setTimeout(function() {window.location = 'navigation-interrupted-by-fragment.html#abc'}, 10);
}
onhashchange = function() {
setTimeout(done, 100);
}
function done() {
console.log('Visited fragment and waited.');
if (window.testRunner) {
testRunner.notifyDone();
}
}
console.log('First visit.');
</script>
<p>This test checks that interrupting a slow navigation with a fragment navigation will cancel the first navigation.