- From: Ben Kelly <notifications@github.com>
- Date: Mon, 09 Jan 2017 07:23:52 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 9 January 2017 15:24:34 UTC
I believe in practice both chrome and firefox extend the lifetime for message events. There needs to be some protection against using `self.registration.active.postMessage()` to self-post and stay alive forever. Currently firefox does not have this problem because we don't expose ServiceWorker object on the worker context. (Its a bug.) I think chrome handles this case by only extending the lifetime of the SW if the calling SW has a controlled Client. -- 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/1050#issuecomment-271311859
Received on Monday, 9 January 2017 15:24:34 UTC