Skip to content

Expose fetchLater only in a SecureContext - #1859

Merged
annevk merged 1 commit into
whatwg:mainfrom
TimvdLippe:patch-3
Sep 29, 2025
Merged

annevk merged 1 commit into
whatwg:mainfrom
TimvdLippe:patch-3

Conversation

@TimvdLippe

Copy link
Copy Markdown
Contributor Author

web-platform-tests/wpt#55123 updates the IDL test to run in a secure context to check for the existence of fetchLater. Currently Chromium browsers fail these tests: https://wpt.fyi/results/fetch/api/idlharness.any.html?label=experimental&label=master&aligned

@annevk

annevk commented Sep 29, 2025

Copy link
Copy Markdown
Member

cc @noamr

@noamr

noamr commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

LGTM
CC @mingyc

@annevk

annevk commented Sep 29, 2025

Copy link
Copy Markdown
Member

This is a normative change and therefore would normally require the PR template. I'm going to waive that requirement given that Chromium is supportive and is the only implementation so far (out of Chromium, Gecko, and WebKit) and we already have test coverage. It should also be non-controversial as this API is partially permission-gated and permissions shouldn't work without HTTPS.

@annevk
annevk merged commit 4775fcb into whatwg:main Sep 29, 2025
@annevk

annevk commented Sep 29, 2025

Copy link
Copy Markdown
Member

Thanks @TimvdLippe!

@noamr

noamr commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

This is a normative change and therefore would normally require the PR template. I'm going to waive that requirement given that Chromium is supportive and is the only implementation so far (out of Chromium, Gecko, and WebKit) and we already have test coverage. It should also be non-controversial as this API is partially permission-gated and permissions shouldn't work without HTTPS.

Also it was gated by a security error anyway when used outside of a potentially trustworthy context. So this mainly reduces the error surface rather than changes functionality

@TimvdLippe
TimvdLippe deleted the patch-3 branch September 29, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants