Re: [slightlyoff/ServiceWorker] should ServiceWorkerContainer.getRegistrations() check the uninstalling flag (#943)

> I'm not sure I understand the use case of exposing an uninstalling flag via self.registration.uninstalling.

I haven't come across any use case yet. I guess @wanderview might have thought it would help in case we need some way to prevent further operations on a registration when it's being uninstalled. However, I don't see any issue with the current behavior: when called on an uninstalling registration, `registration.update()` rejects, and `registration.unregister()` resolves with true if it's still waiting to be cleared or resolves with false if it's already cleared, which seem reasonable to me.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/943#issuecomment-239077375

Received on Thursday, 11 August 2016 05:35:41 UTC