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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp

Issue 2808663003: Explicitly tell the preload request where to take the referrer from (Closed)
Patch Set: comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/PreloadRequest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
index 7c8e35d1990a3ddebb6864c41e1d7c03cb25ee25..711d1b9af77c59eb170ed5f5f6fa43fb7615fabb 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
@@ -41,7 +41,7 @@ Resource* PreloadRequest::Start(Document* document) {
ResourceRequest resource_request(url);
resource_request.SetHTTPReferrer(SecurityPolicy::GenerateReferrer(
referrer_policy_, url,
- resource_type_ == Resource::kCSSStyleSheet
+ referrer_source_ == kBaseUrlIsReferrer
? base_url_.StrippedForUseAsReferrer()
: document->OutgoingReferrer()));
resource_request.SetRequestContext(
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/PreloadRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698