Closed annevk closed 3 years ago
In Gecko, a worker with a parent worker inherits secure context state from the parent worker. See https://searchfox.org/mozilla-central/rev/769222fadff46164f8cc0dc7a0bae5a60dc2f335/dom/workers/WorkerPrivate.cpp#2632 and compare to the toplevel worker case at https://searchfox.org/mozilla-central/rev/769222fadff46164f8cc0dc7a0bae5a60dc2f335/dom/workers/WorkerPrivate.cpp#2649-2655
Oh, and Gecko does not support SharedWorker inside a dedicated worker, so we don't end up having to worry about that case..
https://github.com/whatwg/html/pull/5659 resolved this, but since this specification doesn't appear to be maintained, leaving this open for now for visibility.
Sorted by #84.
Per HTML you can have a dedicated worker inside a dedicated worker. Or a shared worker inside a dedicated worker. At that point it's owner set won't include a
Document
object, meaning they're always treated as secure.