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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.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/HTMLAnchorElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
index 70bb5a0e757a2c75b81ca80daa48adb2a86e2f3f..332d249139ec932071b8f35d36519e08f88bf59b 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
@@ -412,8 +412,9 @@ void HTMLAnchorElement::handleClick(Event* event) {
ReferrerPolicy policy;
if (hasAttribute(referrerpolicyAttr) &&
- SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords(
- fastGetAttribute(referrerpolicyAttr), &policy) &&
+ SecurityPolicy::referrerPolicyFromString(
+ fastGetAttribute(referrerpolicyAttr),
+ SupportReferrerPolicyLegacyKeywords, &policy) &&
!hasRel(RelationNoReferrer)) {
UseCounter::count(document(),
UseCounter::HTMLAnchorElementReferrerPolicyAttribute);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.cpp ('k') | third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698