List of steps to reproduce (step by step, including full links if applicable):
- Go to https://en.wikipedia.org/wiki/Main_Page (or any page with an image, or any page when global CSS/JS is enabled) in Firefox
- Look at the browser console
What happens?:
For every cross-origin request, Firefox prints an Info-level message:
Referrer Policy: Less restricted policies, including ‘no-referrer-when-downgrade’, ‘origin-when-cross-origin’ and ‘unsafe-url’, will be ignored soon for the cross-site request: https://upload.wikimedia.org/wikipedia/commons/thumb/9/90/Quileute_Net_Fishing_TFA.jpg/121px-Quileute_Net_Fishing_TFA.jpg 121px-Quileute_Net_Fishing_TFA.jpg
The page has the following referrer meta tags:
<meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-crossorigin"> <meta name="referrer" content="origin-when-cross-origin">
Firefox applies the origin-when-cross-origin policy to the requests.
What should have happened instead?:
We should not set a referrer policy that will be ignored.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
- firefox 93.0-1 on Arch Linux
See also:
- T87276: Set an explicit "Origin When Cross-Origin" referer policy via the meta referrer tag
- T180921: Referrer policy for browsers which only support the old spec
- T248526: Review referer configuration of origin/origin-when-crossorigin/origin-when-cross-origin
- T338183: Remove old origin-when-crossorigin Safari misspelling of referrer policy