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

Unified Diff: third_party/WebKit/Source/core/css/StyleRuleImport.cpp

Issue 2780533002: Use Referrer-Policy headers for CSS stylesheets (Closed)
Patch Set: updates 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/css/StyleRuleImport.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
index b677c8f597a7b3dc7ddee80cacb0ccc7e223dffe..aa89b43bc9366555a8249eb110c867e08df70f87 100644
--- a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
+++ b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
@@ -67,6 +67,7 @@ DEFINE_TRACE_AFTER_DISPATCH(StyleRuleImport) {
void StyleRuleImport::setCSSStyleSheet(
const String& href,
const KURL& baseURL,
+ ReferrerPolicy referrerPolicy,
const String& charset,
const CSSStyleSheetResource* cachedStyleSheet) {
if (m_styleSheet)
@@ -78,11 +79,8 @@ void StyleRuleImport::setCSSStyleSheet(
document = m_parentStyleSheet->singleOwnerDocument();
context = m_parentStyleSheet->parserContext();
}
- context =
- CSSParserContext::create(context, baseURL,
- document ? document->getReferrerPolicy()
- : context->referrer().referrerPolicy,
- charset, document);
+ context = CSSParserContext::create(context, baseURL, referrerPolicy, charset,
+ document);
m_styleSheet = StyleSheetContents::create(this, href, context);
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRuleImport.h ('k') | third_party/WebKit/Source/core/dom/ProcessingInstruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698