Page MenuHomePhabricator

Firefox: 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
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

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:

Event Timeline

Firefox enforces strict-origin-when-cross-origin since Firefox 93 (released in October 2021) when Tracking Protection is enabled. The user can disable it per-site (click on the shield in the address bar) and in this case these logs disappear in the console.

Seeing the issues where some browsers misinterpreted some values and even the fallback mechanism (T180921), any change should be properly evaluated to stay compatible with main browsers, even if Firefox is complaining.