|
7 | 7 | <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet"> |
8 | 8 | <meta content="Bikeshed version d113b2e81, updated Tue Jun 9 14:57:55 2026 -0700" name="generator"> |
9 | 9 | <link href="https://www.w3.org/TR/service-workers/" rel="canonical"> |
10 | | - <meta content="1044d87465c8c00c25663212c8bea68edec92446" name="revision"> |
| 10 | + <meta content="2fd367a434488635d5da594f7106deb1de673310" name="revision"> |
11 | 11 | <meta content="dark light" name="color-scheme"> |
12 | 12 | <link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css"> |
13 | 13 | <style>/* Boilerplate: style-autolinks */ |
|
997 | 997 | </p> |
998 | 998 | <h1 class="no-ref p-name" id="title">Service Workers Nightly</h1> |
999 | 999 | <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> |
1001 | 1001 | <details open> |
1002 | 1002 | <summary>More details about this document</summary> |
1003 | 1003 | <div data-fill-with="spec-metadata"> |
@@ -4575,7 +4575,7 @@ <h3 class="heading settled" id="update-algorithm"><span class="content"><dfn cla |
4575 | 4575 | <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> |
4576 | 4576 | <dt data-md>"<code>module</code>" |
4577 | 4577 | <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> |
4579 | 4579 | </dl> |
4580 | 4580 | <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> |
4581 | 4581 | <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