Description[import] Use master document's origin to resolve CORS
This follows the spec change on https://www.w3.org/Bugs/Public/show_bug.cgi?id=24905
where the fetch origin is given by the master document, not the referring document.
This matches what CSP in imports is doing: Using master's CSP directive to regulate
all the imports.
In implemntation, it just set ResourceLoaderOptions::m_securityOrigin in
FetchRequest::setCrossOriginAccessControl() because HTMLImportsController
happened to pass the master' origin already.
(That was wrong but wasn't covered by the test.)
This change doesn't affect other FetchRequest client because in other callsite,
m_securityOrigin is same as one that is used when it is absent.
TEST=cors-same-origin.html
BUG=348671
R=abarth@chromium.org, dglazkov@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168497
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|