<html xmlns="http://www.w3.org/1999/xhtml">
<body>
This tests that the XML parser doesn't fail if window.close() is called from a script tag while parsing.
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setPopupBlockingEnabled(false);
testRunner.waitUntilDone();
}
window.open("resources/xhtml-close-while-parsing-target.xhtml");
</script>
If you see this text the test has passed.
</body>
</html>