Re: [w3c/ServiceWorker] postMessage keeps service workers alive indefinitely (#980)

I think it's OK to call this an implementation detail. I was originally thinking the spec gives room to terminate long-running events, whereas this is a bit different: the browser sees "postMessage" and decides to not postMessage. But you could consider this being the browser terminating the worker just before/during the postMessage call, so it fits under the spec language of termination "at any time".

Jake's is an interesting idea. I may use something like that for the implementation.

-- 
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/980#issuecomment-249478147

Received on Monday, 26 September 2016 04:42:19 UTC