- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Thu, 30 Jan 2025 17:37:46 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 31 January 2025 01:37:49 UTC
@yoshisatoyanagisawa commented on this pull request. > @@ -1614,6 +1624,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. If running the [=Verify Router Condition=] algorithm with |rule|["{{RouterRule/condition}}"] and |serviceWorker| returns false, return [=a promise rejected with=] a {{TypeError}}. 1. Append |rule| to |routerRules|. 1. If |routerRules| [=list/contains=] a {{RouterRule}} whose {{RouterRule/source}} is either of "{{RouterSourceEnum/fetch-event}}" or "{{RouterSourceEnum/race-network-and-fetch-handler}}", and |serviceWorker|'s [=set of event types to handle=] does not [=set/contain=] {{ServiceWorkerGlobalScope/fetch!!event}}, return [=a promise rejected with=] a {{TypeError}}. + 1. If running the [=Check Router Registration Limit=] with |serviceWorker| returns false, return [=a promise rejected with=] a {{TypeError}}. You might want to take |routerRules| instead of |serviceWorker| because |serviceWorker| should not have the latest |routerRules| yet. It will be updated in L1628. To avoid `addRoutes()` failure as a permanent failure, it is intended to verify before update, right? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1752#pullrequestreview-2585482939 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1752/review/2585482939@github.com>
Received on Friday, 31 January 2025 01:37:49 UTC