blob: 1bb133ffa69615247003465b78108446d22f40c3 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.setPopupBlockingEnabled(true);
testRunner.setCloseRemainingWindowsWhenComplete(true);
testRunner.waitUntilDone();
// Record current window count.
window.windowCount = testRunner.windowCount();
}
function testDone() {
if (window.testRunner && testRunner.windowCount() == window.windowCount)
document.getElementById("console").innerText = "PASSED";
// Close the test.
testRunner.notifyDone();
}
</script>
</head>
<body">
History reload can only navigate the page in the self frame, no matter what target frame is defined in base tag and no new window can be created. This is a test case for bug https://bugs.webkit.org/show_bug.cgi?id=45369.
<div id="loadCount"></div>
<div id="console">FAILED</div>
<script>
if (!sessionStorage.loadCount)
sessionStorage.loadCount = 1;
else
sessionStorage.loadCount = parseInt(sessionStorage.loadCount, 10) + 1;
document.getElementById("loadCount").innerText = "load count : " + sessionStorage.loadCount;
if (2 == sessionStorage.loadCount)
testDone();
else
history.go();
</script>
</body>
</html>