- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Mon, 12 Feb 2024 23:53:53 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1701/review/1877061056@github.com>
@yoshisatoyanagisawa commented on this pull request. > + 1. If |request|'s [=request/method=] is not |method|, return false. + 1. If |condition|["{{RouterCondition/requestMode}}"] [=map/exists=], then: + 1. Let |mode| be |condition|["{{RouterCondition/requestMode}}"]. + 1. If |request|'s [=request/mode=] is not |mode|, return false. + 1. If |condition|["{{RouterCondition/requestDestination}}"] [=map/exists=], then: + 1. Let |destination| be |condition|["{{RouterCondition/requestDestination}}"]. + 1. If |request|'s [=request/destination=] is not |destination|, return false. + 1. If |condition|["{{RouterCondition/runningStatus}}"] [=map/exists=], then: + 1. Let |runningStatus| be |condition|["{{RouterCondition/runningStatus}}"]. + 1. If |runningStatus| is {{RunningStatus/"running"}}, and |serviceWorker| is not [=running=], return false. + 1. If |runningStatus| is {{RunningStatus/"not-running"}}, and |serviceWorker| is [=running=], return false. + 1. If |condition|["{{RouterCondition/_or}}"] [=map/exists=], then: + 1. Let |orConditions| be |condition|["{{RouterCondition/_or}}"]. + 1. For each |orCondition| of |orConditions|: + 1. If running [=Match Router Condition=] algorithm with |orCondition|, |serviceWorker| and |request| returns true, then return true. + 1. Return false. This is working as intended. I also had the same question before and opened a question in https://github.com/WICG/service-worker-static-routing-api/issues/9. Let me allow the LISP-like syntax, but the conclusion there is: `(or ())` is false, and `(and ())` is true. However, please feel free to reopen the issue if you disagree. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1701#discussion_r1487356492 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1701/review/1877061056@github.com>
Received on Tuesday, 13 February 2024 07:54:00 UTC