polyfill-service icon indicating copy to clipboard operation
polyfill-service copied to clipboard

Safari 11.1 shouldn't polyfill `fetch`

Open Morozzzko opened this issue 2 years ago • 3 comments

What

Safari 11.1 shouldn't receive polyfill for fetch because it already has it

Details

We can see that https://caniuse.com/?search=fetch says that Safari supports fetch since 10.1

safari

I've checked it on Browserstack (Mac OS Monterey, Safari 11.1), and it indeed loads a polyfill:

v3

even though the browser has it anyway

browser

Morozzzko avatar Jun 21 '22 18:06 Morozzzko

The fetch polyfill also includes patches for Request, Response and Headers. Some of these are required up to Safari 12.1

https://github.com/mdn/browser-compat-data/issues/2006#issuecomment-457277312

romainmenke avatar Aug 07 '22 15:08 romainmenke

This might be related, but I noticed IntersectionObserver being polyfilled in Safari on iOS 15, when it already exists. So there might be some feature detection issues in Safari in general.

ffxsam avatar Aug 31 '22 14:08 ffxsam

@ffxsam That is because of this issue and is unrelated to fetch : https://github.com/Financial-Times/polyfill-library/issues/1192

romainmenke avatar Aug 31 '22 14:08 romainmenke