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

Unified Diff: Source/core/dom/Document.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 | « no previous file | Source/core/frame/csp/CSPDirectiveList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 0a0756e3b9807a5fb28f529f611808b0de1a725f..6d8bbdd0d0559e224c862ff301d844805ad607cc 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3162,6 +3162,8 @@ void Document::processReferrerPolicy(const String& policy)
setReferrerPolicy(ReferrerPolicyAlways);
} else if (equalIgnoringCase(policy, "origin")) {
setReferrerPolicy(ReferrerPolicyOrigin);
+ } else if (equalIgnoringCase(policy, "origin-when-crossorigin")) {
+ setReferrerPolicy(ReferrerPolicyOriginWhenCrossOrigin);
} else if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || equalIgnoringCase(policy, "default")) {
setReferrerPolicy(ReferrerPolicyNoReferrerWhenDowngrade);
} else {
« no previous file with comments | « no previous file | Source/core/frame/csp/CSPDirectiveList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698