Skip to content

Update AbortController Safari compatibility#3241

Merged
ddbeck merged 1 commit intomdn:masterfrom
kiliancs:abortcontroller-safari
Jan 3, 2019
Merged

Update AbortController Safari compatibility#3241
ddbeck merged 1 commit intomdn:masterfrom
kiliancs:abortcontroller-safari

Conversation

@kiliancs
Copy link
Contributor

@kiliancs kiliancs commented Jan 1, 2019

According to https://bugs.webkit.org/show_bug.cgi?id=174980, while AbortController is present, and fetch will take an AbortSignal, it will never actually abort the request. This affects Safari and iOS Safari.

A quick test like http://temp.minimum.se/abort-native.html (from a comment in the ticket) proves this is indeed the case. I tested on macOS with Safari 12 and on latest iOS.

See also https://caniuse.com/#feat=abortcontroller.

A checklist to help your pull request get merged faster:

  • Summarize your changes
  • Data: link to resources that verify support information (such as browser's docs, changelogs, source control, bug trackers, and tests)
  • Data: if you tested something, describe how you tested with details like browser and version
  • Review the results of the linter and fix problems reported (If you need help, please ask in a comment!)
  • Link to related issues or pull requests, if any

@ddbeck ddbeck added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jan 2, 2019
Copy link
Contributor

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for starting this PR! It looks pretty good, all we need is a couple style changes to the notes here. Thank you again!

According to https://bugs.webkit.org/show_bug.cgi?id=174980, while
`AbortController` is present, and `fetch` will take an `AbortSignal`, it
will never actually abort the request.
@kiliancs kiliancs force-pushed the abortcontroller-safari branch from 4956282 to da99358 Compare January 3, 2019 06:57
Copy link
Contributor

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Thank you! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants