blob: 0b0d091936532b0b0027c5e1a317635ac1e2b5df [file] [log] [blame]
<html><!-- webkit-test-runner [ dumpJSConsoleLogInStdErr=true ] -->
<body>
<p>Navigate while an EventSource reconnect timer is waiting, then have the reconnect timer trigger before the page unloads. We pass if we don't crash.
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
function navigate() {
window.location = "resources/wait-then-notify-done.php";
}
var es = new EventSource("resources/reconnect.php");
es.onerror = function() {
setTimeout(navigate, 0);
};
</script>
</body>
</html>