blob: de7ffed855204fd0713a0526c997ec49dc97032f [file] [log] [blame]
<!-- webkit-test-runner [ enableBackForwardCache=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>