<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function r()
{
document.body.removeChild(document.getElementById("f"));
setTimeout(function() { testRunner.notifyDone();}, 0);
}
</script>
Test deleting a subframe from within its readystatechange event. We pass if we don't crash.
<iframe id="f" src="resources/delete-frame-during-readystatechange-frame.html"></iframe>