Cap page-scoped referrer policies
- Category
- Network / Connectivity
- Type
- New or changed feature
- Status
- No longer pursuing (Chrome No longer pursuing)
- Intent stage
- Start prototyping
WPT details: Last October's changes to step 7 of the W3C referrer policy's spec's "Determine request's referrer" algorithm, which now reads > "The user agent MAY alter referrerURL or referrerOrigin at this point to enforce arbitrary policy considerations in the interests of minimizing data leakage. For example, the user agent could strip the URL down to an origin, modify its host, replace it with an empty string, etc.," leads to the existing referrer policy WPTs testing a bunch of behavior that is no longer mandated by the spec, since the spec grants wide latitude to implementors. We plan to update the pertinent WPTs to make them more permissive.
Summary
We’re considering mitigating indiscriminate sharing of information about navigations’ sources by introducing a cap on the granularity of widely-scoped referrer policies. Page-scoped referrer policies (those set via <meta name=”referrer”> or the Referrer-Policy header on documents) with values of "unsafe-url", "origin-when-cross-origin", and "no-referrer-when-downgrade" will be treated as if they were instead "strict-origin-when-cross-origin".
Motivation
This would be the second of two related privacy improvements to referrer handling. The first change approached "inadvertent" sharing of detailed information about navigations' sources caused by the existing, overly permissive, default policy. This change would address "indiscriminate" sharing of information about navigations: when sites that only need to share detailed information about navigations' sources in specific instances specify overly broad policies (scoped to an entire page rather than particular elements). The "referrer privacy model" doc discusses the motivation in more detail: https://docs.google.com/document/u/1/d/e/2PACX-1vQfLtjrZxHMVPrGrMm9kBRYugNqwtemhpVTcoS6pH2zhlyGwJmitHEMBeUm1GXtlbYfRUf0hraDvhKm/pub
Standards & signals
- Specification: https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://crbug.com/1041905
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=cap-page-scoped-referrer-policies
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Cap%20page-scoped%20referrer%20policies
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Cap%20page-scoped%20referrer%20policies
- Baseline status: https://webstatus.dev/?q=Cap%20page-scoped%20referrer%20policies
Docs: https://docs.google.com/document/d/1MskyRR802Njedavt7uIphc5gccFO8-WWmo2vnlGNgG4/edit#