Re: [w3c/ServiceWorker] InstallEvent.addRoutes is resolving/rejecting the returned promise synchronously (Issue #1742)

In the Chromium implementation, Step 6 in https://w3c.github.io/ServiceWorker/#register-router-method is actually done in the browser process because the routing actually happens in the browser process for a main resource navigation.  Since the browser process do not trust the renderer process (and there is mismatch of a regular expression implementation between them), the browser process verifies Step 4 and 5.

However, as you pointed out, the specification is written like as-if Step 6 is a synchronous step.  I am afraid if it can be too much implementation details, but I am happy to update the specification.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1742#issuecomment-2605979340
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1742/2605979340@github.com>

Received on Tuesday, 21 January 2025 23:55:31 UTC