blob: 06dbb68a5c995c840421ed6df2a8f3c63a28e77c [file] [log] [blame]
<!-- webkit-test-runner [ UsesBackForwardCache=true ] -->
<!DOCTYPE html>
<html>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
</script>
<iframe id="iframe"></iframe>
<script>
var frame = document.getElementById("iframe");
frame.contentWindow.onunload = () => {
var link = document.createElement('a');
link.href = "about:blank";
link.click();
window.setTimeout(() => {
// Do nothing.
}, 0);
};
window.location = 'javascript:"PASS did not crash.<script>window.testRunner && window.testRunner.notifyDone();</' + 'script>"';
</script>
</body>
</html>