Skip to content

Commit

Permalink
Update and publish referrer policy feature
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.
  • Loading branch information
foolip committed Jul 5, 2024
1 parent 170bd7d commit 104e431
Show file tree
Hide file tree
Showing 4 changed files with 143 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.

29 changes: 29 additions & 0 deletions features/referrer-policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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
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 104e431

Please sign in to comment.