- From: Kagami Sascha Rosylight <notifications@github.com>
- Date: Mon, 28 Apr 2025 05:09:52 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 28 April 2025 12:09:56 UTC
saschanaz left a comment (w3c/ServiceWorker#1472) Indeed it returns an object per the [Resolve Job Promise algorithm](https://w3c.github.io/ServiceWorker/#resolve-job-promise-algorithm): > 2. If job’s [job type](https://w3c.github.io/ServiceWorker/#dfn-job-type) is either register or update, set convertedValue to the result of [getting the service worker registration object](https://w3c.github.io/ServiceWorker/#get-the-service-worker-registration-object) that represents value in job’s [client](https://w3c.github.io/ServiceWorker/#dfn-job-client). > 3. Else, set convertedValue to value, in job’s [client](https://w3c.github.io/ServiceWorker/#dfn-job-client)’s [Realm](https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object's-realm). > 4. Resolve job’s [job promise](https://w3c.github.io/ServiceWorker/#dfn-job-promise) with convertedValue. But: > I believe this is a mistake since implementations all return the registration object AFAICT Gecko and WebKit returned `undefined` since forever. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1472#issuecomment-2835034920 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1472/2835034920@github.com>
Received on Monday, 28 April 2025 12:09:56 UTC