Skip to content

Commit 50b79d9

Browse files
authored
Add more keys to Referrer Policy (#2048)
1 parent 1e49dba commit 50b79d9

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

features/referrer-policy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Referrer policy
22
description: The `Referrer-Policy` HTTP header and `referrerpolicy` HTML attributes control whether requests have the `Referer` header and what information the header contains.
33
spec: https://w3c.github.io/webappsec-referrer-policy/
44
caniuse: referrer-policy
5-
# TODO: Align with caniuse.com if https://github.com/Fyrd/caniuse/pull/7108 lands
6-
# or remove this TODO if it does not.
75
status:
86
compute_from:
97
- html.elements.a.referrerpolicy
@@ -29,3 +27,9 @@ compat_features:
2927
- html.elements.script.referrerpolicy
3028
- http.headers.Referrer-Policy
3129
- http.headers.Referrer-Policy.default_strict-origin-when-cross-origin
30+
- http.headers.Referrer-Policy.no-referrer-when-downgrade
31+
- http.headers.Referrer-Policy.origin-when-cross-origin
32+
- http.headers.Referrer-Policy.same-origin
33+
- http.headers.Referrer-Policy.strict-origin
34+
- http.headers.Referrer-Policy.strict-origin-when-cross-origin
35+
- http.headers.Referrer-Policy.unsafe-url

features/referrer-policy.yml.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ compat_features:
2727
# safari_ios: "12"
2828
- http.headers.Referrer-Policy
2929

30+
# baseline: high
31+
# baseline_low_date: 2020-01-15
32+
# baseline_high_date: 2022-07-15
33+
# support:
34+
# chrome: "61"
35+
# chrome_android: "61"
36+
# edge: "79"
37+
# firefox: "52"
38+
# firefox_android: "52"
39+
# safari: "11.1"
40+
# safari_ios: "12"
41+
- http.headers.Referrer-Policy.same-origin
42+
- http.headers.Referrer-Policy.strict-origin
43+
- http.headers.Referrer-Policy.strict-origin-when-cross-origin
44+
3045
# baseline: high
3146
# baseline_low_date: 2020-09-16
3247
# baseline_high_date: 2023-03-16
@@ -124,3 +139,12 @@ compat_features:
124139
# safari: "15"
125140
# safari_ios: "15"
126141
- http.headers.Referrer-Policy.default_strict-origin-when-cross-origin
142+
143+
# baseline: false
144+
# support:
145+
# chrome: "56"
146+
# chrome_android: "56"
147+
# edge: "79"
148+
- http.headers.Referrer-Policy.no-referrer-when-downgrade
149+
- http.headers.Referrer-Policy.origin-when-cross-origin
150+
- http.headers.Referrer-Policy.unsafe-url

0 commit comments

Comments
 (0)