<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function iframeDone() {
console.log('main frame: iframe is done');
setTimeout(() => {
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
</script>
<iframe name="iframe" src="resources/onreadystatechange-detach-iframe.html"></iframe>
This test passes if it does not crash.