blob: 30cff2b845e8078b52c27c72020e39aa6b7fe19b [file] [log] [blame]
<html>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function test() {
document.getElementsByTagName("body")[0].removeChild(document.getElementById("target"));
}
function finish() {
setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 300);
}
</script>
<iframe id="target" src="resources/image-load-in-subframe-unload-handler-helper.html"></iframe>
This test triggers an unload handler that starts an image load in a different frame (and deletes both frames), but ensures the main frame is not destroyed. We pass if we don't crash.
</body>
</html>