<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> |