|
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
Total comments: 1
|
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
|
Total messages: 14 (5 generated)
|