<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}

function didLoad() {
    setTimeout(() => {
        location.href = `data:text/html,<script>
            if (window.testRunner)
                testRunner.notifyDone();
        </` + `script>PASS`;
    }, 0);
}

document.write(`<iframe width=100% height=100% src="resources/pdf-iframe-load-crash.pdf?${Math.random()}" onload="didLoad()"></iframe>`)

</script>
