Re: [ServiceWorker] Why does update() not return the promise from _Update (#311)

I'm trying to think of what kind of benefits we can give to devs by exposing the Update promise to script? One can be allowing devs to catch update errors and the reasons, otherwise it would be silently ignored and the existing active worker will continue to serve the requests anyway. For the successful update case, I don't see a big gain as the promise will resolve with the same registration object which the update() method was invoked on. Any idea what'd be a better decision here?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/311#issuecomment-119059794

Received on Tuesday, 7 July 2015 03:27:43 UTC