Skip to content
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

Fetch is wrongly polyfilled for Chrome on iOS #2771

Open
nathell opened this issue Sep 29, 2023 · 0 comments
Open

Fetch is wrongly polyfilled for Chrome on iOS #2771

nathell opened this issue Sep 29, 2023 · 0 comments

Comments

@nathell
Copy link

nathell commented Sep 29, 2023

Bug report

What

Requesting https://polyfill.io/v3/polyfill.js?features=fetch on Chrome iOS returns a polyfill for fetch, even though Chrome supports the fetch API natively.

Details

To reproduce:

  1. On an iOS device, install Chrome and hit https://polyfill.io/v3/polyfill.js?features=fetch
  2. Expected result: No polyfills needed for current settings and browser
  3. Actual result: A polyfill for fetch

Tested on Chrome version 117.0.5938.117, iOS 16.6, iPhone 11.

Furthermore, the polyfill is deficient in comparison to the native implementation. Specifically, the Response object that gets passed to its promises doesn’t have a body property (that should be a ReadableStream). This is causing problems for us downstream, as it causes NPEs in the ClojureScript SSE client we use that is based on fetch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant