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

Issue 2080653002: SameSite: Correctly set requests' initiator for new tabs. (Closed)

Created:
4 years, 6 months ago by Mike West
Modified:
4 years, 6 months ago
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews+fetch_chromium.org, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mmenke, nasko+codewatch_chromium.org, 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

SameSite: Correctly set requests' initiator for new tabs. A user-initiatated navigation in a newly opened tab (via the omnibox, for example) should be considered SameSite (this is step 1 of Section 2.1 of the spec[1]). This patch adjusts 'FrameLoadRequest' and 'RenderFrameImpl' accordingly. Now when the browser initiates a navigation on a user's behalf, the frame type will be set correctly (in 'RenderFrameImpl::NavigateInternal()'), and the initiator will be updated only if it isn't already set (in 'RenderFrameImpl::willSendRequest()' and 'FrameLoadRequest()'). [1]: https://tools.ietf.org/html/draft-west-first-party-cookies-07#section-2.1 BUG=619603 Committed: https://crrev.com/4f2cb7dddfefb352de6c980d9597539674ba0272 Cr-Commit-Position: refs/heads/master@{#401552}

Patch Set 1 #

Total comments: 1

Patch Set 2 : firstPartyForCookiesFix #

Total comments: 3

Patch Set 3 : Minimal. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -55 lines) Patch
M content/browser/loader/resource_dispatcher_host_browsertest.cc View 1 2 12 chunks +28 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoadRequest.h View 2 chunks +10 lines, -48 lines 0 comments Download
A third_party/WebKit/Source/core/loader/FrameLoadRequest.cpp View 1 chunk +63 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (9 generated)
Mike West
Jochen, mind looking at the //content bits? Yoav, Philip, mind poking at Blink? Thanks! https://codereview.chromium.org/2080653002/diff/1/content/renderer/render_frame_impl.cc ...
4 years, 6 months ago (2016-06-20 10:22:15 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2080653002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/2080653002/diff/20001/content/renderer/render_frame_impl.cc#oldcode3907 content/renderer/render_frame_impl.cc:3907: // This is broken and should be fixed to ...
4 years, 6 months ago (2016-06-21 07:45:21 UTC) #3
Mike West
https://codereview.chromium.org/2080653002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/2080653002/diff/20001/content/renderer/render_frame_impl.cc#oldcode3907 content/renderer/render_frame_impl.cc:3907: // This is broken and should be fixed to ...
4 years, 6 months ago (2016-06-21 08:58:20 UTC) #4
Mike West
https://codereview.chromium.org/2080653002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2080653002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4164 third_party/WebKit/Source/core/dom/Document.cpp:4164: return importsController()->master()->firstPartyForCookies(); Note also: I could split this and ...
4 years, 6 months ago (2016-06-21 09:01:01 UTC) #5
Mike West
On 2016/06/21 at 09:01:01, Mike West wrote: > https://codereview.chromium.org/2080653002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > ...
4 years, 6 months ago (2016-06-22 08:32:24 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2080653002/40001
4 years, 6 months ago (2016-06-22 09:20:59 UTC) #9
Mike West
I've stripped out the FrameFetchContext changes; the bug this patch is addressing can be fixed ...
4 years, 6 months ago (2016-06-22 09:22:38 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 10:54:11 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-22 13:17:49 UTC) #13
commit-bot: I haz the power
This CL has an open dependency (Issue 2084333002 Patch 40001). Please resolve the dependency and ...
4 years, 6 months ago (2016-06-22 13:44:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2080653002/40001
4 years, 6 months ago (2016-06-23 06:27:34 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-23 06:32:38 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 06:36:14 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4f2cb7dddfefb352de6c980d9597539674ba0272
Cr-Commit-Position: refs/heads/master@{#401552}

Powered by Google App Engine
This is Rietveld 408576698