blob: 350175d53acf680dca384bebd67c3f2705570012 [file] [log] [blame]
<body>
This test creates a child iframe, which in turn creates an EventSource then
reloads. During commit for the reload, the EventSource is cancelled, and the
EventSource's onerror handler in turn creates a new EventSource, which is then
aborted slightly later during the commit process. This second EventSource's
onerror handler detaches the iframe. This will cause the iframe to detach in
the middle of commit, and shouldn't crash.
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function finish() {
setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
</script>
<iframe src="resources/reentrant-eventsource-onerror-crash-during-commit-iframe.html"></iframe>
</body>