Skip to content

Commit 72638bd

Browse files
authored
Update and publish referrer policy feature (#1299)
Trim the BCD keys to just HTTP header and HTML attributes. Pin the status to the same but ignoring the reflectd API since that's not key to using this. Note that support in <script> came a bit later but the Baseline year is 2020 regardless, so include it in compute_from. Fetch and SVG integration is excluded, as it's not part of the feature description. All the entries for specific values like "no-referrer-when-downgrade" are also removed since the data for that looks messy and would need detailed review to have confidence in it. The default behavior is included to align with caniuse, but may change: Fyrd/caniuse#7108
1 parent 86f3025 commit 72638bd

File tree

4 files changed

+145
-330
lines changed

4 files changed

+145
-330
lines changed

features/draft/referrer-policy.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

features/draft/referrer-policy.yml.dist

Lines changed: 0 additions & 260 deletions
This file was deleted.

features/referrer-policy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Referrer policy
2+
description: The `Referrer-Policy` HTTP header and `referrerpolicy` HTML attributes control whether requests have the `Referer` header and what information the header contains.
3+
spec: https://w3c.github.io/webappsec-referrer-policy/
4+
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.
7+
status:
8+
compute_from:
9+
- html.elements.a.referrerpolicy
10+
- html.elements.area.referrerpolicy
11+
- html.elements.iframe.referrerpolicy
12+
- html.elements.img.referrerpolicy
13+
- html.elements.link.referrerpolicy
14+
- html.elements.script.referrerpolicy
15+
- http.headers.Referrer-Policy
16+
- http.headers.Referrer-Policy.default_strict-origin-when-cross-origin
17+
compat_features:
18+
- api.HTMLAnchorElement.referrerPolicy
19+
- api.HTMLAreaElement.referrerPolicy
20+
- api.HTMLIFrameElement.referrerPolicy
21+
- api.HTMLImageElement.referrerPolicy
22+
- api.HTMLLinkElement.referrerPolicy
23+
- api.HTMLScriptElement.referrerPolicy
24+
- html.elements.a.referrerpolicy
25+
- html.elements.area.referrerpolicy
26+
- html.elements.iframe.referrerpolicy
27+
- html.elements.img.referrerpolicy
28+
- html.elements.link.referrerpolicy
29+
- html.elements.script.referrerpolicy
30+
- http.headers.Referrer-Policy
31+
- http.headers.Referrer-Policy.default_strict-origin-when-cross-origin

0 commit comments

Comments
 (0)