[w3c/ServiceWorker] maybe explicitly set the `self.registration` DOM object on `ServiceWorkerGlobalScope` (#1271)

Currently the spec says this for `ServiceWorkerGlobalScope.registration`:

> The registration attribute must return the ServiceWorkerRegistration object that represents the service worker's containing service worker registration.

But it never actually creates that DOM `ServiceWorkerRegistration` object as far as I can tell.  Also, that DOM object must exist to properly receive updates via `Update Registration State`.  Otherwise a synchronous `self.registration.active` may return a stale value.

I'm not sure if this falls in "implementation detail"-land or if its a spec issue.  I think it would be nice to be explicit about the creation of DOM objects, though.

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

Received on Thursday, 1 February 2018 18:44:10 UTC