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

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 2918313002: Implement new referrer policies (Closed)
Patch Set: update public/platform/OWNERS per presubmit Created 3 years, 6 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/modules/fetch/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index dd35a7f3d7c5f993f3236e0e308e11e65dbcc473..6e971448d0ae35fba4e02d6939f87f3d3fcf839d 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -609,9 +609,12 @@ String Request::getReferrerPolicy() const {
return "origin";
case kReferrerPolicyOriginWhenCrossOrigin:
return "origin-when-cross-origin";
+ case kReferrerPolicySameOrigin:
+ return "same-origin";
+ case kReferrerPolicyStrictOrigin:
+ return "strict-origin";
case kReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin:
- DCHECK(RuntimeEnabledFeatures::ReducedReferrerGranularityEnabled());
- return "no-referrer-when-downgrade-origin-when-cross-origin";
+ return "strict-origin-when-cross-origin";
}
NOTREACHED();
return String();
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp ('k') | third_party/WebKit/Source/modules/fetch/RequestInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698