Re: [ServiceWorker] Client.postMessage should return a Promise (#677)

> *: some browsers have a back-forward cache (a.k.a. fastback) feature like https://wiki.mozilla.org/DocShell:Fastback - in such cases navigation doesn't destroy a client, it merely pauses all timers. In such cases where timers are paused, I guess the promise should neither resolve nor reject, but instead wait until the timers are resumed (e.g. because the user returns to the cached page) or the client ceases to exist (e.g. because the client is evicted from the back-forward cache).

As an implementer I'd rather that this just failed. We can't even guarantee that the SW itself will stay alive by the time the page is restored.

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

Received on Friday, 10 April 2015 23:05:23 UTC