blob: ad7c7e785cd78aad0ecdf43815adb6ecb5a4e0ea [file] [log] [blame]
<p>
Tests that WebKit does not crash when a frame is removed during keydown
event processing. To test manually, press any letter key. The iframe
below should disappear and Safari should not crash.
</p>
<iframe onload="test()" id="iframe" src="resources/keydown-remove-frame-iframe.html"></iframe>
<script>
function test() {
document.getElementById("iframe").focus();
if (window.layoutTestController) {
layoutTestController.dumpAsText();
eventSender.keyDown("x");
}
}
</script>