- From: Matt Falkenhagen <notifications@github.com>
- Date: Tue, 20 Sep 2016 21:39:14 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 21 September 2016 04:39:44 UTC
Chrome has a bug where a service worker can postMessage to itself to stay alive indefinitely: https://bugs.chromium.org/p/chromium/issues/detail?id=647943 You can also register at two scopes and have those workers ping-pong messages. I'm wondering if this should be prevented at the spec level, for example: - postMessage to a service worker that has no in-scope (or same-origin) client won't wake it up - postMessage from a service worker doesn't wake up the destination service worker If this is an implementation detail, would something heuristic like a SW can be kept alive by at most 5 messages events be reasonable? -- 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
Received on Wednesday, 21 September 2016 04:39:44 UTC