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

Unified Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp

Issue 2776163002: Change CSSParserContext to either take explicit or implicit referrer (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/dom/ProcessingInstruction.cpp
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
index a56b695443b20f87aeff67ebc5721fb75f51e740..8d47e4317c864833c250186bc78296eac048fc4e 100644
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
@@ -195,8 +195,8 @@ void ProcessingInstruction::setCSSStyleSheet(
}
DCHECK(m_isCSS);
- CSSParserContext* parserContext =
- CSSParserContext::create(document(), baseURL, charset);
+ CSSParserContext* parserContext = CSSParserContext::create(
+ document(), baseURL, document().getReferrerPolicy(), charset);
StyleSheetContents* newSheet =
StyleSheetContents::create(href, parserContext);

Powered by Google App Engine
This is Rietveld 408576698