DescriptionService Worker: Make ServiceWorkerRegistration.update() return a promise. (Chromium 2/3)
As per the resolution of f2f, ServiceWorkerRegistration.update() should return a
promise that transforms the promise returned by Update algorithm.
In this CL, ServiceWorkerContextCore::UpdateServiceWorker method has been
overloaded to cover two invocation paths: a scheduled update without a
provider_host and a callback (Soft Update in the spec) and a call initiated from
the script surface using ServiceWorkerRegistration.update().
Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-update
Spec discussion: https://github.com/slightlyoff/ServiceWorker/issues/311
Companion CL (Blink): https://codereview.chromium.org/1260833003/
Companion CL (Blink layout test): https://codereview.chromium.org/1268663003/
BUG=513655
Committed: https://crrev.com/2f85d42e860bb2370f411a7a2d3ad665641d6970
Cr-Commit-Position: refs/heads/master@{#341515}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fix strings. #
Total comments: 6
Patch Set 3 : Pass a raw ptr to callback's onError instead of a scoped_ptr. #Messages
Total messages: 39 (16 generated)
|