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

Issue 650023003: Make generateReferrerHeader() return a Referrer instead of a String (Closed)

Created:
6 years, 2 months ago by Nate Chapin
Modified:
6 years, 2 months ago
CC:
blink-reviews, Yoav Weiss, gavinp+prerender_chromium.org, gavinp+loader_chromium.org, mkwst+moarreviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Make generateReferrerHeader() return a Referrer instead of a String Rename it to generateReferrer() to better match its return type. Also, make setHTTPReferrer() remove the header if the value parameter is empty. There shouldn't ever be a reason to send an empty referrer header (rather than not sending a referrer header at all), so this enables us to enforce this property in one place, rather than several. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183838

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -51 lines) Patch
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/loader/PrerenderHandle.cpp View 1 2 3 4 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M Source/platform/Prerender.h View 4 chunks +6 lines, -7 lines 0 comments Download
M Source/platform/Prerender.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/platform/exported/WebURLRequest.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M Source/platform/network/ResourceRequest.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/network/ResourceRequest.cpp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M Source/platform/weborigin/SecurityPolicy.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/weborigin/SecurityPolicy.cpp View 1 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M Source/platform/weborigin/SecurityPolicyTest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M Source/web/WebSecurityPolicy.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
Nate Chapin
This looks cleaner to me, but I'm happy to be outvoted if there's a good ...
6 years, 2 months ago (2014-10-15 16:11:20 UTC) #2
Mike West
Perhaps rename 'generateReferrerHeader' to 'generateReferrer'? Otherwise this looks more readable to me than the existing ...
6 years, 2 months ago (2014-10-16 10:52:51 UTC) #4
Nate Chapin
On 2014/10/16 10:52:51, Mike West wrote: > Perhaps rename 'generateReferrerHeader' to 'generateReferrer'? Otherwise this > ...
6 years, 2 months ago (2014-10-16 18:08:48 UTC) #5
Nate Chapin
https://codereview.chromium.org/650023003/diff/360001/Source/web/WebSecurityPolicy.cpp File Source/web/WebSecurityPolicy.cpp (right): https://codereview.chromium.org/650023003/diff/360001/Source/web/WebSecurityPolicy.cpp#newcode105 Source/web/WebSecurityPolicy.cpp:105: WebString WebSecurityPolicy::generateReferrerHeader(WebReferrerPolicy referrerPolicy, const WebURL& url, const WebString& referrer) ...
6 years, 2 months ago (2014-10-16 18:26:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650023003/380001
6 years, 2 months ago (2014-10-16 18:33:37 UTC) #8
Mike West
On 2014/10/16 18:26:23, Nate Chapin wrote: > https://codereview.chromium.org/650023003/diff/360001/Source/web/WebSecurityPolicy.cpp > File Source/web/WebSecurityPolicy.cpp (right): > > https://codereview.chromium.org/650023003/diff/360001/Source/web/WebSecurityPolicy.cpp#newcode105 ...
6 years, 2 months ago (2014-10-16 18:33:39 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/32130)
6 years, 2 months ago (2014-10-16 20:46:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650023003/380001
6 years, 2 months ago (2014-10-16 20:49:39 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 21:36:54 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:380001) as 183838

Powered by Google App Engine
This is Rietveld 408576698