Chromium Code Reviews
DescriptionSet 'ResourceRequest::requestorOrigin' in Blink for more request types.
This patch ensures that we set the correct request initiator for all
requests that run through Blink's ResourceFetcher (which is basically
everything except navigation) by extending
'FrameFetchContext::setFirstPartyForCookies' into a more general-purpose
setter that also takes care of 'requestorOrigin', applying these setting
to requests sent through 'PingLoader' and 'BeaconLoader'. This doesn't have any
web-visible effect, but it will allow us to remove the requestor origin
setting from 'content::RenderFrameImpl' in the somewhat near future.
As a drive-by, this fixes 'FrameFetchContext::setFirstPartyForCookies's
current implementation, which was providing the wrong first-party for
nested and cross-origin requests sent through 'PingLoader' and 'BeaconLoader'.
BUG=625969
R=jochen@chromium.org
Committed: https://crrev.com/47673cd03085ab0879683e2a782a4eb3a4eecb4b
Cr-Commit-Position: refs/heads/master@{#405459}
Patch Set 1 : The rest of the patch... #Patch Set 2 : jochen #Messages
Total messages: 17 (7 generated)
|