| testRunner.waitUntilDone(); |
| var toRemove = document.getElementById("child"); |
| var childDocument = toRemove.contentDocument; |
| var textarea = childDocument.getElementById("target"); |
| textarea.addEventListener("input", function(evt) { |
| toRemove.parentNode.removeChild(toRemove); |
| window.testRunner.notifyDone(); |
| var selection = childDocument.getSelection(); |
| var data = childDocument.getElementById("data"); |
| selection.selectAllChildren(data); |
| childDocument.execCommand("copy"); |
| childDocument.execCommand("paste"); |
| -- This test removes an iframe with editable content |
| -- during actually editing that editable text by handling DOM input event. |
| -- WebKit should not crash even after this brutal removal. |
| <iframe id="child" onload="test()" src="resources/paste-removing-iframe-child.html" /> |