-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
TypeError: Fetch event is destroyed. Safari bug tracked by Sentry after updating to latest whatwg-fetch@3.1.0 #790
Comments
iOS 13 would be using a native fetch and not a polyfill. Are you sure it is using the polyfill? |
@JakeChampion I'm sure I'm importing "whatwg-fetch": "3.1.0" polyfill before everything else in the code, and removing window.fetch for IE to fix bug:
|
I'm quite confused about this one because we don't have an error which uses the phrase "event is destroyed", which makes me think the polyfill is not being applied but the code you've posted makes me also think it can't be the native fetch due to |
@JakeChampion basically there is one async request for css file with fonts. |
Okay, looking into the webkit source code I can see the same error message "Fetch event is destroyed", which is an error message that we don't have in this fetch polyfill. I am very confident that for the specific fetch request, it used the native fetch and not the polyfill. Here is the patch to webkit which added the error message -- https://www.mail-archive.com/webkit-changes@lists.webkit.org/msg129765.html |
So why didn't polyfill worked out? |
You are only deleting native fetch for edge but this bug was in native fetch for iOS |
@JakeChampion If I remove window.fetch for IOS, should polyfill work in this case? Is there guaranty way to detect safari same way as I detect Edge? |
@dgraham please reopen, cos there is no solution to resolve an issue. I understand that it is a bug with webkit, but is it possible to solve it by using fetch polyfill, and if yes, how? |
IOS 13.5.1
Mobile Safari 13.1.1
error on attempt to load css file from same origin
Never seen error like that before today.
I've posted by accident to whatwg/fetch#1048
The text was updated successfully, but these errors were encountered: