[w3c/ServiceWorker] Update algorithm may want to abort in absence of a newest worker (#1495)

Specifically around step 4 of the [Update](https://w3c.github.io/ServiceWorker/#update-algorithm) algorithm - for update jobs, there must have been a newest worker for the ServiceWorkerRegistration.update call to reach this step, and if Update doesn't see a worker returned by Get Newest Worker, there must be an (actually) newest worker that's in an "evaluating" state (an unregister + register could make this happen). So, to be consistent with the idea of only proceeding with Update if the job's script URL is current "newest script URL", perhaps step 4 could be modified to:

"If job’s job type is update, and newestWorker is null or its script url does not equal job’s script url, then:"...


-- 
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/1495

Received on Wednesday, 8 January 2020 04:52:17 UTC