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

Issue 2561903002: [downloads] Set initiator when handling downloads via a[download] (Closed)

Created:
4 years ago by asanka
Modified:
4 years ago
Reviewers:
clamy, Mike West
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[downloads] Set initiator when handling downloads via a[download] Downloads initiated via clicking on an anchor with a 'download' attribute should behave the same way with regard to cookie handling as a download initiated via a top level navigation. This CL adds logic to set the initiator origin for URLRequests initiated in response to such downloads so that the handling of SameSite cookies follows suit with top level navigations. R=mkwst@chromium.org, clamy@chromium.org BUG=648043 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/e6567ba989cbfd9780e0a5cdff960a3ae903b0ad Cr-Commit-Position: refs/heads/master@{#439137}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Fix compilation #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -21 lines) Patch
M content/browser/download/download_browsertest.cc View 1 2 chunks +80 lines, -0 lines 0 comments Download
M content/browser/download/download_request_core.cc View 1 1 chunk +8 lines, -0 lines 2 comments Download
M content/browser/frame_host/render_frame_message_filter.h View 1 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_message_filter.cc View 1 4 chunks +6 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 3 chunks +11 lines, -6 lines 2 comments Download
M content/public/browser/download_url_parameters.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +9 lines, -3 lines 0 comments Download
A content/test/data/download/download-attribute-same-site-cookie.html View 1 chunk +12 lines, -0 lines 0 comments Download
A content/test/data/download/download-attribute-same-site-cookie.html.mock-http-headers View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
asanka
PTAL? I'll add OWNERS once you confirm that this is OK.
4 years ago (2016-12-12 22:02:45 UTC) #8
Mike West
Compilation error aside, the test result looks correct to me. //third_party/WebKit LGTM, as does the ...
4 years ago (2016-12-13 14:04:50 UTC) #13
asanka
On 2016/12/13 at 14:04:50, mkwst wrote: > Compilation error aside, the test result looks correct ...
4 years ago (2016-12-13 16:05:02 UTC) #17
clamy
Thanks! Two questions below. I haven't had time to look at the unit tests, will ...
4 years ago (2016-12-14 16:25:39 UTC) #20
asanka
https://codereview.chromium.org/2561903002/diff/40001/content/browser/download/download_request_core.cc File content/browser/download/download_request_core.cc (right): https://codereview.chromium.org/2561903002/diff/40001/content/browser/download/download_request_core.cc#newcode190 content/browser/download/download_request_core.cc:190: request->set_initiator(params->initiator()); On 2016/12/14 at 16:25:38, clamy wrote: > Sanity ...
4 years ago (2016-12-14 18:21:30 UTC) #21
clamy
Thanks! Lgtm.
4 years ago (2016-12-16 14:51:15 UTC) #22
asanka
On 2016/12/16 at 14:51:15, clamy wrote: > Thanks! Lgtm. Thanks!
4 years ago (2016-12-16 15:21:41 UTC) #23
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/2561903002/40001
4 years ago (2016-12-16 15:22:27 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-16 17:36:45 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-16 17:40:01 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e6567ba989cbfd9780e0a5cdff960a3ae903b0ad
Cr-Commit-Position: refs/heads/master@{#439137}

Powered by Google App Engine
This is Rietveld 408576698