Re: [slightlyoff/ServiceWorker] consider allowing multiple worker thread instances for a single registration (#756)

> While it makes life easier for Firefox devs, it makes life harder for web-devs, because we will have to handle on consequences.

Just to clarify, this is not just something we have requested.  Knowing if we are going to support this might help us because we're in the middle of designing our multiple content process architecture for service workers, but other reasons were voiced at the meeting:

1. Presenting the same global across some events, but then changing it at pseudo-random times between events creates a large surface area for bugs in content script.  If we consistently provided a new global for every event then developers would see a consistent environment during development and in production.
2. Allowing multiple service worker thread instances would allow some features to be better implemented using operating system services.  For example, the push events could fire in a process managed by the OS and not have to launch the entire browser if the user doesn't open a window.

---
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/756#issuecomment-238269882

Received on Monday, 8 August 2016 15:33:59 UTC