Skip to content

Commit f988ca3

Browse files
Fetch module service worker scripts with same-origin credentials (w3c#1829)
SHA: 2fd367a Reason: push, by pull[bot] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0ad4f1f commit f988ca3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
88
<meta content="Bikeshed version d113b2e81, updated Tue Jun 9 14:57:55 2026 -0700" name="generator">
99
<link href="https://www.w3.org/TR/service-workers/" rel="canonical">
10-
<meta content="1044d87465c8c00c25663212c8bea68edec92446" name="revision">
10+
<meta content="2fd367a434488635d5da594f7106deb1de673310" name="revision">
1111
<meta content="dark light" name="color-scheme">
1212
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
1313
<style>/* Boilerplate: style-autolinks */
@@ -997,7 +997,7 @@
997997
</p>
998998
<h1 class="no-ref p-name" id="title">Service Workers Nightly</h1>
999999
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>,
1000-
<time class="dt-updated" datetime="2026-06-17">17 June 2026</time></p>
1000+
<time class="dt-updated" datetime="2026-06-22">22 June 2026</time></p>
10011001
<details open>
10021002
<summary>More details about this document</summary>
10031003
<div data-fill-with="spec-metadata">
@@ -4575,7 +4575,7 @@ <h3 class="heading settled" id="update-algorithm"><span class="content"><dfn cla
45754575
<p><a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-classic-worker-script" id="ref-for-fetch-a-classic-worker-script">Fetch a classic worker script</a> given <var>job</var>’s <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer" id="ref-for-concept-url-serializer⑧">serialized</a> <a data-link-type="dfn" href="#dfn-job-script-url" id="ref-for-dfn-job-script-url⑥">script url</a>, <var>job</var>’s <a data-link-type="dfn" href="#dfn-job-client" id="ref-for-dfn-job-client①⑤">client</a>, "<code>serviceworker</code>", and the to-be-created <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object" id="ref-for-environment-settings-object①③">environment settings object</a> for this service worker.</p>
45764576
<dt data-md>"<code>module</code>"
45774577
<dd data-md>
4578-
<p><a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-module-worker-script-tree" id="ref-for-fetch-a-module-worker-script-tree">Fetch a module worker script graph</a> given <var>job</var>’s <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer" id="ref-for-concept-url-serializer⑨">serialized</a> <a data-link-type="dfn" href="#dfn-job-script-url" id="ref-for-dfn-job-script-url⑦">script url</a>, <var>job</var>’s <a data-link-type="dfn" href="#dfn-job-client" id="ref-for-dfn-job-client①⑥">client</a>, "<code>serviceworker</code>", "<code>omit</code>", and the to-be-created <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object" id="ref-for-environment-settings-object①④">environment settings object</a> for this service worker.</p>
4578+
<p><a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-module-worker-script-tree" id="ref-for-fetch-a-module-worker-script-tree">Fetch a module worker script graph</a> given <var>job</var>’s <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer" id="ref-for-concept-url-serializer⑨">serialized</a> <a data-link-type="dfn" href="#dfn-job-script-url" id="ref-for-dfn-job-script-url⑦">script url</a>, <var>job</var>’s <a data-link-type="dfn" href="#dfn-job-client" id="ref-for-dfn-job-client①⑥">client</a>, "<code>serviceworker</code>", "<code>same-origin</code>", and the to-be-created <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object" id="ref-for-environment-settings-object①④">environment settings object</a> for this service worker.</p>
45794579
</dl>
45804580
<p class="issue" id="issue-02e2fe82"><a class="self-link" href="#issue-02e2fe82"></a> Using the to-be-created <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object" id="ref-for-environment-settings-object①⑤">environment settings object</a> rather than a concrete <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object" id="ref-for-environment-settings-object①⑥">environment settings object</a>. This is used due to the unique processing model of service workers compared to the processing model of other <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/workers.html#workers" id="ref-for-workers①">web workers</a>. The script fetching algorithms of HTML standard originally designed for other <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/workers.html#workers" id="ref-for-workers②">web workers</a> require an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object" id="ref-for-environment-settings-object①⑦">environment settings object</a> of the execution environment, but service workers fetch a script separately in the <a data-link-type="dfn" href="#update" id="ref-for-update②">Update</a> algorithm before the script later runs multiple times through the <a data-link-type="dfn" href="#run-service-worker" id="ref-for-run-service-worker②">Run Service Worker</a> algorithm.</p>
45814581
<p class="issue" id="issue-9d9e65b5"><a class="self-link" href="#issue-9d9e65b5"></a> The <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-classic-worker-script" id="ref-for-fetch-a-classic-worker-script①">fetch a classic worker script</a> algorithm and the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-module-worker-script-tree" id="ref-for-fetch-a-module-worker-script-tree①">fetch a module worker script graph</a> algorithm in HTML take <var>job</var>’s <a data-link-type="dfn" href="#dfn-job-client" id="ref-for-dfn-job-client①⑦">client</a> as an argument. <var>job</var>’s <a data-link-type="dfn" href="#dfn-job-client" id="ref-for-dfn-job-client①⑧">client</a> is null when passed from the <a data-link-type="dfn" href="#soft-update" id="ref-for-soft-update">Soft Update</a> algorithm.</p>

0 commit comments

Comments
 (0)