Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 2147473002: Set 'ResourceRequest::requestorOrigin' in Blink for more request types. (Closed)

Created:
4 years, 5 months ago by Mike West
Modified:
4 years, 5 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews_chromium.org, mmenke, Randy Smith (Not in Mondays), tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set '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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -23 lines) Patch
M content/browser/loader/resource_dispatcher_host_browsertest.cc View 1 chunk +42 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
A content/test/data/nested_page_with_subresources.html View 1 chunk +8 lines, -0 lines 0 comments Download
A content/test/data/page_with_subresources.html View 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/BeaconLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 chunks +21 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 1 chunk +60 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoadRequest.cpp View 1 chunk +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
Mike West
Jochen, have a few minutes to look at this? The bulk of the patch's actual ...
4 years, 5 months ago (2016-07-12 13:23:43 UTC) #3
jochen (gone - plz use gerrit)
can you merge setFirstPartyForCookies into populateRequestData?
4 years, 5 months ago (2016-07-13 07:46:59 UTC) #4
Mike West
On 2016/07/13 at 07:46:59, jochen wrote: > can you merge setFirstPartyForCookies into populateRequestData? Sure. Makes ...
4 years, 5 months ago (2016-07-13 10:12:03 UTC) #5
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-13 12:42:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147473002/60001
4 years, 5 months ago (2016-07-14 07:49:14 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/103897)
4 years, 5 months ago (2016-07-14 08:53:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147473002/60001
4 years, 5 months ago (2016-07-14 09:22:01 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 5 months ago (2016-07-14 09:49:16 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 09:49:18 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 09:51:02 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/47673cd03085ab0879683e2a782a4eb3a4eecb4b
Cr-Commit-Position: refs/heads/master@{#405459}

Powered by Google App Engine
This is Rietveld 408576698