Closed
Bug 1259873
Opened 10 years ago
Closed 2 years ago
Find a way to pass window and security information to LoadInfo from dedicated web workers
Categories
(Core :: DOM: Workers, defect, P5)
Core
DOM: Workers
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: mrbkap, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: btpp-fixlater, dom-lws-bugdash-triage)
In bug 1257861, I switched the default LoadInfo behavior to assume that things are not 3rd party until proven otherwise. Unfortunately, dedicated web workers fall into this category. We should fix that by passing the parent document for it and other information (sicking has more info) through to LoadInfo somehow.
Kyle, this is the worker-related thing that I've been talking about.
What we need is an object (a separate one for every worker) which contain "network related stuff" related to the given worker. This object would as a start contain:
* Principal
* LoadGroup
* Private-browsing
* Owning document (this is null for shared/service workers as well as their dedicated sub-workers)
It's important that this object can be used from the main thread. I.e. can be addreffed/released, and where the above members can be accessed. Probably fine if other members can't be used from main thread, as long as we have assertions in place if they are.
I don't think the object needs to be scriptable.
The goal here is to be able to pass this object to NS_NewChannel, so that we can deduce things like referrer, third-party-ness, originattributes, CSP, mixed-content-blocking etc.
Oh, and the object likely needs to be refcounted so that we can rely on it being alive for the lifetime of the channel.
Updated•10 years ago
|
Whiteboard: btpp-fixlater
Blocks: 1224800
Summary: Find a way to pass window information to LoadInfo from dedicated web workers → Find a way to pass window and security information to LoadInfo from dedicated web workers
Updated•8 years ago
|
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
Comment 3•2 years ago
|
||
Please check if this is still an issue.
Flags: needinfo?(bugmail)
Whiteboard: btpp-fixlater → btpp-fixlater, dom-lws-bugdash-triage
Comment 4•2 years ago
|
||
Everything from comment 1 is now propagated as well as other things like CookieJarSettings.
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(bugmail)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•