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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.cpp

Issue 2780533002: Use Referrer-Policy headers for CSS stylesheets (Closed)
Patch Set: rebase Created 3 years, 9 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
Index: third_party/WebKit/Source/core/html/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index 9fbb194b137faccd6d67dfcf9857acbafe83f0e0..48390b57534c6d76dce10dcf04ae5e343f0378fd 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -55,6 +55,7 @@ enum StyleSheetCacheStatus {
void LinkStyle::setCSSStyleSheet(
const String& href,
const KURL& baseURL,
+ ReferrerPolicy referrerPolicy,
const String& charset,
const CSSStyleSheetResource* cachedStyleSheet) {
if (!m_owner->isConnected()) {
@@ -110,8 +111,7 @@ void LinkStyle::setCSSStyleSheet(
}
CSSParserContext* parserContext = CSSParserContext::create(
- m_owner->document(), baseURL, m_owner->document().getReferrerPolicy(),
- charset);
+ m_owner->document(), baseURL, referrerPolicy, charset);
DEFINE_STATIC_LOCAL(EnumerationHistogram, restoredCachedStyleSheetHistogram,
("Blink.RestoredCachedStyleSheet", 2));

Powered by Google App Engine
This is Rietveld 408576698