blob: bb2bef7cda99e5fc2262fec99792738ccbd98bda [file] [log] [blame]
<html>
<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>