- From: Ben Kelly <notifications@github.com>
- Date: Thu, 04 Sep 2025 07:04:41 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 4 September 2025 14:04:45 UTC
wanderview left a comment (w3c/ServiceWorker#1784) > 1. Regarding [@wanderview](https://github.com/wanderview)'s suggestion "Can you not use request's reserved client as the environment?", I just wondered if it is guaranteed to be non-null. Note that we do not assert non-null for the sub resource case. Sorry, I missed this question from a month ago. I believe the reserved client will only be set for document navigations and top level worker scripts. So its only really relevant when selecting and/or spinning up the service worker for a non-subresource request. For subresource requests, however, the request should have a valid client set which can be used to get the storage key. Or the service worker global's environment settings object, etc. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1784#issuecomment-3253897376 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1784/3253897376@github.com>
Received on Thursday, 4 September 2025 14:04:45 UTC