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

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

Issue 2674973006: Move parsing of referrer policy header values to SecurityPolicy (Closed)
Patch Set: Created 3 years, 10 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/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index 9eba4a9a578c732dcb60a0d97e3bababa7b8f884..7e97fcca9899c71fe14ce32225edb71cced3fc9c 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -83,7 +83,8 @@ void HTMLLinkElement::parseAttribute(
} else if (name == referrerpolicyAttr) {
m_referrerPolicy = ReferrerPolicyDefault;
if (!value.isNull()) {
- SecurityPolicy::referrerPolicyFromString(value, &m_referrerPolicy);
+ SecurityPolicy::referrerPolicyFromString(
+ value, DoNotSupportReferrerPolicyLegacyKeywords, &m_referrerPolicy);
UseCounter::count(document(),
UseCounter::HTMLLinkElementReferrerPolicyAttribute);
}

Powered by Google App Engine
This is Rietveld 408576698