Bug 1720294 - Part 1: Add a pref 'network.http.referer.disallowCrossSiteRelexingDefault'. r=ckerschb

Add a pref to control if Firefox to disallow relaxing the referrer
policy for cross-site requests. If it's set, we will ignore
'unsafe-url', 'no-referrer-when-downgrade' and
'origin-when-cross-origin' for cross-site requests.

Differential Revision: https://phabricator.services.mozilla.com/D119971
This commit is contained in:
Tim Huang 2021-07-29 15:23:05 +00:00
Родитель de34e147c2
Коммит cd54328176
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -9202,6 +9202,14 @@
value: 2
mirror: always
# Set to ignore referrer policies which is less restricted than the default for
# cross-site requests, including 'unsafe-url', 'no-referrer-when-downgrade' and
# 'origin-when-cross-origin'.
- name: network.http.referer.disallowCrossSiteRelaxingDefault
type: bool
value: @IS_EARLY_BETA_OR_EARLIER@
mirror: always
# Set the Private Browsing Default Referrer Policy applied to third-party
# trackers when the default cookie policy is set to reject third-party
# trackers, to be used unless overriden by the site.