This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28504 - Should SharedWorker have only Exposed=(Window) ?
Summary: Should SharedWorker have only Exposed=(Window) ?
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-17 10:44 UTC by Olli Pettay
Modified: 2017-07-21 10:15 UTC (History)
10 users (show)

See Also:


Attachments

Description Olli Pettay 2015-04-17 10:44:57 UTC
Seems like engines don't support SharedWorkers in Workers, so perhaps the spec should be updated to match the reality?
Or are there plans to support SharedWorkers in Workers?
Comment 1 Travis Leithead [MSFT] 2015-04-17 23:56:32 UTC
Is there a technical reason engines haven't done this? I didn't think all engines had implemented Workers in Workers either...
Comment 2 Simon Pieters 2015-04-20 11:33:05 UTC
FWIW Presto has supported arbitrary nesting of workers and shared workers since we introduced workers.
Comment 3 Ian 'Hixie' Hickson 2015-04-20 21:02:15 UTC
SharedWorkers in Workers are pretty critical for the long-term usefulness of workers, IMHO...
Comment 4 Jake Archibald 2015-06-09 09:43:45 UTC
SharedWorkers in ServiceWorkers is a feature request from https://github.com/slightlyoff/ServiceWorker/issues/678 too.

Additionally, we've had feature requests for being able to generate notification icons within a serviceworker. This requires workercanvas of course, but any pixel work should be farmed off to a worker so it doesn't block fetch (and other) events.

Could SharedWorker be tied to the life of the parent context, rather than specifically documents? (https://html.spec.whatwg.org/multipage/workers.html#dom-sharedworker) This would allow a sharedworker to be tied to the lifecycle of a serviceworker and/or documents.
Comment 5 Anne 2017-07-21 10:15:37 UTC
Per comment 3. Jake's request is tracked by https://github.com/whatwg/html/issues/411.