Skip to content

Commit aa09129

Browse files
authored
Wait until window load before calling window.stop() in XHR test (web-platform-tests#11091)
https://wpt.fyi/xhr/abort-after-stop.htm is broken in 3/4 browsers and it appears this is because calling window.stop() causes the window load event to never be fired, and testharness.js depends on that. There is no harness timeout in Edge, because Edge fires the load event. Tested with https://jsbin.com/tufepag/edit?js,console and filed web-platform-tests#11090 for the lack of tests for this.
1 parent 4ada870 commit aa09129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xhr/abort-after-stop.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div id="log"></div>
1111
<script>
1212
var test = async_test();
13-
test.step(function() {
13+
window.onload = test.step_func(function() {
1414
var client = new XMLHttpRequest();
1515
var abortFired = false;
1616
client.onabort = test.step_func(function (e) {

0 commit comments

Comments
 (0)