- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Thu, 30 Jan 2025 23:40:07 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 31 January 2025 07:40:11 UTC
@yoshisatoyanagisawa commented on this pull request. > @@ -3456,6 +3461,57 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/ 1. Return true. </section> + <section algorithm> + <h3 id="check-router-registration-limit"><dfn>Check Router Registration Limit</dfn></h3> + + : Input + :: |routerRules|, a [=list of router rules=] + : Output + :: a boolean + + Note: Router conditions can be complex and nested using {{RouterCondition/_or}} and {{RouterCondition/not}}. To prevent excessive processing, this algorithm introduces two limits. First, the total number of conditions, counting all nested conditions, cannot exceed 1024. Second, the nesting depth is limited to 10 levels to avoid exponential computation. + + 1. Let |result| be a [=count router condition result=]. + 1. Set |result|'s [=count router condition result/total count=] to 0. What is the intention to set "total count" to 0 here instead of 1, and omit increment one in count-router-inner-conditions? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1752#pullrequestreview-2585881408 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1752/review/2585881408@github.com>
Received on Friday, 31 January 2025 07:40:11 UTC