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

Issue 264613006: Move first-party cookie URL logic to browser process. (Closed)

Created:
6 years, 7 months ago by davidben
Modified:
6 years, 7 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Move first-party cookie URL logic to browser process. Rather than have the renderer decide the value and inform the browser, the browser decides and informs the render. This removes one piece of navigation request redirect policy that needs to come from the renderer. Redundant logic in Blink's DocumentLoader::willSendRequest to be removed in a follow-up. BUG=368813 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270463

Patch Set 1 #

Patch Set 2 : Fix build #

Patch Set 3 : Fix build more. (Also apparently something insisted on git cl format.) #

Patch Set 4 : Actually fix build. #

Patch Set 5 : Actually actually fix build #

Patch Set 6 : Pass first-party changes down to renderer. #

Patch Set 7 : Fix DCHECK. #

Total comments: 4

Patch Set 8 : Fix DCHECK in rejected redirect case. #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -96 lines) Patch
M chrome/renderer/extensions/extension_localization_peer.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/renderer/security_filter_peer.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/security_filter_peer.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/loader/async_resource_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M content/child/npapi/plugin_url_fetcher.cc View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -8 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 5 3 chunks +9 lines, -17 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -12 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M content/public/child/request_peer.h View 1 2 3 4 5 1 chunk +7 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
davidben
This may be premature until browser process navigation plans are mapped out more, but the ...
6 years, 7 months ago (2014-05-05 23:32:41 UTC) #1
Charlie Reis
Sorry I missed this! Must have gotten buried in my inbox during yesterday's big day ...
6 years, 7 months ago (2014-05-08 00:53:20 UTC) #2
Charlie Reis
I like this. Are we sure that anything that gets a firstPartyCookie update in DocumentLoader::willSendRequest ...
6 years, 7 months ago (2014-05-08 20:43:20 UTC) #3
davidben
> Are we sure that anything that gets a firstPartyCookie update in > DocumentLoader::willSendRequest also ...
6 years, 7 months ago (2014-05-09 22:08:04 UTC) #4
Charlie Reis
Cool, works for me. content/ LGTM. You'll need an owner for the chrome/ files, and ...
6 years, 7 months ago (2014-05-12 23:47:13 UTC) #5
jam
On 2014/05/12 23:47:13, Charlie Reis(OOO as of May 17) wrote: > Cool, works for me. ...
6 years, 7 months ago (2014-05-14 16:11:32 UTC) #6
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 7 months ago (2014-05-14 16:31:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/264613006/140001
6 years, 7 months ago (2014-05-14 16:31:45 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 18:41:27 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 20:06:42 UTC) #10
Message was sent while issue was closed.
Change committed as 270463

Powered by Google App Engine
This is Rietveld 408576698