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

Issue 1425013004: Single referrer for all savable resources from a given frame. (Closed)

Created:
5 years, 1 month ago by Łukasz Anforowicz
Modified:
5 years, 1 month ago
CC:
asanka, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Single referrer for all savable resources from a given frame. When gathering savable resources from the whole page, each resource could have come from a different frame and therefore could have had a different referrer associated with it - back then it made sense to send a vector of referrers (potentially a different one for each savable resource). Now (after crrev.com/1308113008) we gather savable resources per frame and therefore can simplify the IPCs and send only a single referrer for the whole frame. Note that for the main frame, the browser already knows the referrer ... render_frame_host_impl->frame_tree_node() ->navigator() ->GetController() ->GetLastCommittedEntry() ->GetReferrer() ... but this CL keeps communicating the referrer over IPC, because 1) it covers all the frames and 2) the renderer seems like a simpler, single, race-free, more authoratitative source of the referrer information. This CL is to some extent a reply to a CR feedback at crrev.com/1413103003/#msg6 that pointed out general undesirability of sending over IPC a struct-of-vectors (as opposed to a vector-of-structs). This CL improves upon crrev.com/10387090 which introduced sending of referrer information during save-page-as operation, but initially kept sending only default, rather than actual referrers. BUG=526786 Committed: https://crrev.com/f05b1f759c5c29e8a2cf22690477d1572a1d5fc1 Cr-Commit-Position: refs/heads/master@{#356990}

Patch Set 1 #

Patch Set 2 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -46 lines) Patch
M content/browser/download/save_package.h View 1 chunk +4 lines, -5 lines 0 comments Download
M content/browser/download/save_package.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M content/common/frame_messages.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 chunks +4 lines, -11 lines 0 comments Download
M content/renderer/savable_resources.h View 1 chunk +2 lines, -12 lines 0 comments Download
M content/renderer/savable_resources.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/savable_resources_browsertest.cc View 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Łukasz Anforowicz
jochen@, could you please take a look?
5 years, 1 month ago (2015-10-28 22:16:15 UTC) #2
dcheng
Hmm... If someone is using referrer policy (https://w3c.github.io/webappsec-referrer-policy/), would it be possible to have different ...
5 years, 1 month ago (2015-10-29 00:04:21 UTC) #4
Łukasz Anforowicz
On 2015/10/29 00:04:21, dcheng wrote: > Hmm... > > If someone is using referrer policy ...
5 years, 1 month ago (2015-10-29 02:33:15 UTC) #5
dcheng
On 2015/10/29 at 02:33:15, lukasza wrote: > On 2015/10/29 00:04:21, dcheng wrote: > > Hmm... ...
5 years, 1 month ago (2015-10-29 03:15:42 UTC) #6
Łukasz Anforowicz
On 2015/10/29 03:15:42, dcheng wrote: > On 2015/10/29 at 02:33:15, lukasza wrote: > > On ...
5 years, 1 month ago (2015-10-29 03:25:38 UTC) #7
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-10-29 14:20:32 UTC) #8
Łukasz Anforowicz
Daniel, could you please take a look for content/common/frame_messages.h?
5 years, 1 month ago (2015-10-29 14:45:02 UTC) #9
dcheng
lgtm
5 years, 1 month ago (2015-10-29 21:02:26 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425013004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425013004/20001
5 years, 1 month ago (2015-10-29 21:29:43 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-29 22:53:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425013004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425013004/20001
5 years, 1 month ago (2015-10-29 23:53:50 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-10-30 00:00:14 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 00:01:03 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f05b1f759c5c29e8a2cf22690477d1572a1d5fc1
Cr-Commit-Position: refs/heads/master@{#356990}

Powered by Google App Engine
This is Rietveld 408576698