DescriptionEnforce referrer policies for workers
When requesting a resource on behalf of a worker, use the worker's
referrer policy instead of the default.
This CL does three things:
1. Move the referrer policy from Document to ExecutionContext, so that
other contexts (i.e. WorkerGlobalScope) get referrer policies too.
2. When binding a CSP to an ExecutionContext, set the referrer policy
for all types of contexts, not just Document.
3. When setting up a MainThreadBridge to load a resource from a worker,
use the worker's referrer policy to generate the referrer for the
request, instead of always using the default referrer policy.
Added layout tests to check that workers can have a referrer policy
different from the document's.
BUG=483458
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194885
Patch Set 1 #
Total comments: 4
Patch Set 2 : remove Document::setReferrerPolicy override #
Total comments: 7
Patch Set 3 : fix layout test indentation #Messages
Total messages: 13 (3 generated)
|