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

Unified Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.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/dom/ProcessingInstruction.cpp
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
index 8d47e4317c864833c250186bc78296eac048fc4e..986ad578773a01fc66cc6e9a64618df7db2ba04d 100644
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
@@ -187,6 +187,7 @@ bool ProcessingInstruction::sheetLoaded() {
void ProcessingInstruction::setCSSStyleSheet(
const String& href,
const KURL& baseURL,
+ ReferrerPolicy referrerPolicy,
const String& charset,
const CSSStyleSheetResource* sheet) {
if (!isConnected()) {
@@ -195,8 +196,8 @@ void ProcessingInstruction::setCSSStyleSheet(
}
DCHECK(m_isCSS);
- CSSParserContext* parserContext = CSSParserContext::create(
- document(), baseURL, document().getReferrerPolicy(), charset);
+ CSSParserContext* parserContext =
+ CSSParserContext::create(document(), baseURL, referrerPolicy, charset);
StyleSheetContents* newSheet =
StyleSheetContents::create(href, parserContext);

Powered by Google App Engine
This is Rietveld 408576698