<!DOCTYPE html>
Passes if it does not crash and there is no FAIL message.<br>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
</script>
<iframe src="resources/page-beforeunload-document-open-frame.html"></iframe>
