[whatwg] Shared workers with worker parents

For some of the apps that run on Firefox OS, we want to use a Service
Worker to handle a background sync message, but allow that Service
Worker to contact a Shared Worker to do the work. This allows the
app's open browser windows, which also can trigger a sync, to use the
same Shared Worker to efficiently coordinate the network/database
work.

There are more details on the use case[1], but the main spec issue:
currently the Shared Worker part of the spec[2] only specifies
Documents as a parent that can keep a Shared Worker alive.

Would it be possible to change this to also allow any type of Worker
as a parent to a Shared Worker that can keep a Shared Worker alive?

Is bug 28504[3] enough to track this change, or are there other things
to line up before considering the change?

Thanks for the insight,
James

[1] https://github.com/slightlyoff/ServiceWorker/issues/678
[2] https://html.spec.whatwg.org/multipage/workers.html#dom-sharedworker
[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=28504

Received on Friday, 19 June 2015 22:55:37 UTC