Skip to content

Fetch module service worker scripts with same-origin credentials#1829

Merged
yoshisatoyanagisawa merged 1 commit into
w3c:mainfrom
monica-ch:user/monicach/UpdateAlgorithm
Jun 22, 2026
Merged

Fetch module service worker scripts with same-origin credentials#1829
yoshisatoyanagisawa merged 1 commit into
w3c:mainfrom
monica-ch:user/monicach/UpdateAlgorithm

Conversation

@monica-ch

@monica-ch monica-ch commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1365.

The Update algorithm passed "omit" as the credentials mode when fetching
module service worker scripts. HTML changed module scripts to default to
"same-origin" in whatwg/html@5fabb58, and service workers
don't expose a way to opt back into "omit".

This change updates the call to fetch a module worker script graph to
pass "same-origin", aligning the spec with HTML and with shipping
browser behavior.


Preview | Diff

@monica-ch

Copy link
Copy Markdown
Collaborator Author

@yoshisatoyanagisawa CYTAL?

@yoshisatoyanagisawa yoshisatoyanagisawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@yoshisatoyanagisawa yoshisatoyanagisawa merged commit 2fd367a into w3c:main Jun 22, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Jun 22, 2026
SHA: 2fd367a
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to asleekgeek/ServiceWorker that referenced this pull request Jun 22, 2026
…#1829)

SHA: 2fd367a
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Module scripts to be fetched with "same-origin" for credentials

2 participants