<!DOCTYPE html>
<html>
<body>
<iframe></iframe>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function run()
{
    var iframe = document.getElementsByTagName('iframe')[0];
    iframe.contentDocument.documentElement.contentEditable = true;
    iframe.contentDocument.documentElement.addEventListener('focusout', function () {
        iframe.parentNode.removeChild(iframe);
    }, false);
    iframe.contentDocument.documentElement.focus();

    document.write("PASS. WebKit didn't crash.");
}

document.addEventListener('DOMContentLoaded', run);
</script>
</body>
</html>
