-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(AjaxObservable): add "abort" event listener #4588
Conversation
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Travis CI build is failing as of 720a7f7. Here's the output:
|
Pull Request Test Coverage Report for Build 8129
💛 - Coveralls |
What is the use case for this? No one should be doing this: |
Hi @benlesh |
Closing in favor of #6041 Sorry for the long wait. Better late than never. :) |
Closes #4251
Description:
This PR add support for XHR
abort
event.Reference implementations:
Code example:
Current behavior: will do nothing, just hang
With this patch: error will be thrown, and
ProgressEvent
withtype: "abort"
(see screenshot)Browser sleep/wake behavior:
abort()
pending requests when going to sleep(tested on OS X)
Related issue (if exists): Closes #4251