- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Thu, 23 Jan 2025 23:55:07 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 24 January 2025 07:55:11 UTC
@yoshisatoyanagisawa commented on this pull request. > 1. For each |rule| of |rules|: 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 "{{RouterSourceEnum/fetch-event}}" and |serviceWorker|'s [=set of event types to handle=] does not [=set/contain=] {{ServiceWorkerGlobalScope/fetch!!event}}, return [=a promise rejected with=] a {{TypeError}}. - 1. Set |serviceWorker|'s [=service worker/list of router rules=] to |routerRules|. - 1. Return [=a promise resolved with=] undefined. + 1. If |rules| [=list/contains=] a {{RouterRule}} whose {{RouterRule/source}} is "{{RouterSourceEnum/fetch-event}}" and |serviceWorker|'s [=set of event types to handle=] does not [=set/contain=] {{ServiceWorkerGlobalScope/fetch!!event}}, return [=a promise rejected with=] a {{TypeError}}. done. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1744#discussion_r1928278875 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1744/review/2571953467@github.com>
Received on Friday, 24 January 2025 07:55:11 UTC