mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
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:
parent
086251db75
commit
a777fb5474
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user