Skip to content

Commit

Permalink
Update and publish referrer policy feature (#1299)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
foolip committed Jul 12, 2024
1 parent 86f3025 commit 72638bd
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 330 deletions.
70 changes: 0 additions & 70 deletions features/draft/referrer-policy.yml

This file was deleted.

260 changes: 0 additions & 260 deletions features/draft/referrer-policy.yml.dist

This file was deleted.

31 changes: 31 additions & 0 deletions features/referrer-policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Referrer policy
description: The `Referrer-Policy` HTTP header and `referrerpolicy` HTML attributes control whether requests have the `Referer` header and what information the header contains.
spec: https://w3c.github.io/webappsec-referrer-policy/
caniuse: referrer-policy
# TODO: Align with caniuse.com if https://github.com/Fyrd/caniuse/pull/7108 lands
# or remove this TODO if it does not.
status:
compute_from:
- html.elements.a.referrerpolicy
- html.elements.area.referrerpolicy
- html.elements.iframe.referrerpolicy
- html.elements.img.referrerpolicy
- html.elements.link.referrerpolicy
- html.elements.script.referrerpolicy
- http.headers.Referrer-Policy
- http.headers.Referrer-Policy.default_strict-origin-when-cross-origin
compat_features:
- api.HTMLAnchorElement.referrerPolicy
- api.HTMLAreaElement.referrerPolicy
- api.HTMLIFrameElement.referrerPolicy
- api.HTMLImageElement.referrerPolicy
- api.HTMLLinkElement.referrerPolicy
- api.HTMLScriptElement.referrerPolicy
- html.elements.a.referrerpolicy
- html.elements.area.referrerpolicy
- html.elements.iframe.referrerpolicy
- html.elements.img.referrerpolicy
- html.elements.link.referrerpolicy
- html.elements.script.referrerpolicy
- http.headers.Referrer-Policy
- http.headers.Referrer-Policy.default_strict-origin-when-cross-origin
Loading

0 comments on commit 72638bd

Please sign in to comment.