| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- webkit-test-runner [ JavaScriptCanOpenWindowsAutomatically=false ] --> |
| testRunner.waitUntilDone(); |
| // Record current window count. |
| window.windowCount = window.testRunner.windowCount(); |
| if (window.testRunner && window.testRunner.windowCount() == window.windowCount) |
| document.getElementById("console").innerText = "PASSED"; |
| 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> |
| if (!sessionStorage.loadCount) |
| sessionStorage.loadCount = 1; |
| sessionStorage.loadCount = parseInt(sessionStorage.loadCount, 10) + 1; |
| document.getElementById("loadCount").innerText = "load count : " + sessionStorage.loadCount; |
| if (2 == sessionStorage.loadCount) |