Bug 1589074 - Set referrer policy default to strict-origin-when-cross-origin. r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D88547
This commit is contained in:
Dimi Lee 2021-01-25 13:26:36 +00:00
parent 086251db75
commit a777fb5474
2 changed files with 4 additions and 4 deletions

View File

@ -81,11 +81,11 @@ static ReferrerPolicy DefaultReferrerPolicyToReferrerPolicy(
return ReferrerPolicy::No_referrer;
case DefaultReferrerPolicy::eDefaultPolicySameOrgin:
return ReferrerPolicy::Same_origin;
case DefaultReferrerPolicy::eDefaultPolicyStrictWhenXorigin:
return ReferrerPolicy::Strict_origin_when_cross_origin;
case DefaultReferrerPolicy::eDefaultPolicyNoReferrerWhenDownGrade:
return ReferrerPolicy::No_referrer_when_downgrade;
}
return ReferrerPolicy::No_referrer_when_downgrade;
return ReferrerPolicy::Strict_origin_when_cross_origin;
}
struct LegacyReferrerPolicyTokenMap {

View File

@ -8347,7 +8347,7 @@
# 3=no-referrer-when-downgrade.
- name: network.http.referer.defaultPolicy
type: uint32_t
value: 3
value: 2
mirror: always
# Set the default Referrer Policy applied to third-party trackers when the