Skip to content

Wait until window load before calling window.stop() in XHR test - #11091

Merged
foolip merged 1 commit into
masterfrom
fix-window-stop-harness-timeout
May 21, 2018
Merged

foolip merged 1 commit into
masterfrom
fix-window-stop-harness-timeout

Conversation

@foolip

@foolip foolip commented May 21, 2018 •

Copy link
Copy Markdown
Member

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
#11090 for the lack of
tests for this.

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
#11090 for the lack of
tests for this.
@foolip
foolip merged commit aa09129 into master May 21, 2018
@foolip
foolip deleted the fix-window-stop-harness-timeout branch May 21, 2018 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants