Re: [w3c/ServiceWorker] Does changing updateViaCache mint a new ServiceWorkerRegistration or update them all? (#1189)

Sounds like a good WPT to me.

FWIW, in gecko I'm updating it whenever we hit "update registration state":

https://w3c.github.io/ServiceWorker/#update-registration-state-algorithm

And I effectively added to step 5 in Register:

https://w3c.github.io/ServiceWorker/#register-algorithm

These steps:

  0) Set registration's updateViaCache to job's update via cache mode.
  0.5) Run the update registration state algorithm passing registration, null and null as the arguments.

-- 
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/1189#issuecomment-380812900

Received on Thursday, 12 April 2018 13:53:54 UTC