<html>
<head>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}
</script>
<script src="resources/script-slow1.pl"></script> <!-- this cause the preload scanner to kick in -->
</head>
<body>
<img src="resources/image-slow.pl"> <!-- this causes a pending preload to happen -->
<script>
window.close(); //this caused the crash as the preload would start at this point
if (window.testRunner) {
    testRunner.notifyDone();
}
</script>
</body>
