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

Unified Diff: Source/core/frame/csp/CSPDirectiveList.cpp

Issue 736233004: Referrer Policy: Introduce "Origin When Cross-Origin". [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Feedback. Created 6 years, 1 month 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/platform/weborigin/ReferrerPolicy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/csp/CSPDirectiveList.cpp
diff --git a/Source/core/frame/csp/CSPDirectiveList.cpp b/Source/core/frame/csp/CSPDirectiveList.cpp
index 6ff0e090f14ddd5949f55846a98e51f57e298fad..bac990326d84ac7104b9d121391ae5a73ee46f5f 100644
--- a/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -624,6 +624,8 @@ void CSPDirectiveList::parseReferrer(const String& name, const String& value)
m_referrerPolicy = ReferrerPolicyDefault;
} else if (equalIgnoringCase("origin", begin, position - begin)) {
m_referrerPolicy = ReferrerPolicyOrigin;
+ } else if (equalIgnoringCase("origin-when-crossorigin", begin, position - begin)) {
+ m_referrerPolicy = ReferrerPolicyOriginWhenCrossOrigin;
} else {
m_referrerPolicy = ReferrerPolicyNever;
m_policy->reportInvalidReferrer(value);
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/platform/weborigin/ReferrerPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698