- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Sun, 16 Feb 2025 20:50:40 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1755/review/2620006038@github.com>
@yoshisatoyanagisawa commented on this pull request. > @@ -970,9 +971,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Let |promise| be [=a new promise=]. 1. Run the following steps [=in parallel=]: 1. Let |registration| be [=this=]'s associated [=/service worker registration=]. - 1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps. - 1. Set |registration|'s [=navigation preload enabled flag=]. - 1. Resolve |promise| with undefined. + 1. [=Queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to run the following steps: + 1. If |registration|'s [=active worker=] is null, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}}, and abort these steps. + 1. Set |registration|'s [=navigation preload enabled flag=]. If this is for protecting [=navigation preload enabled flag=] to be updated in parallel, I guess we also need the code to read [=navigation preload enabled flag=] in Handle Fetch to be executed with queue? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1755#pullrequestreview-2620006038 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1755/review/2620006038@github.com>
Received on Monday, 17 February 2025 04:50:44 UTC