Hi,


I'm reaching out for a question about Referrer-Policy, more specifically about element-level referrer policies (referrerpolicy=...).

I would expect referrerpolicy on HTML elements to override a page's policy for the corresponding request. 

But this is not what I'm observing on Safari iOS (12) and Desktop (13, with "Prevent cross site tracking" on). And this diverges from Chrome's and Firefox's behaviour, which seem to honor referrerpolicy on elements.

It's very possible that I'm mistaken and/or that my test site is wrong -- your input would help!


Test

Test site

A policy can be selected in the blue button bar. To test referrerpolicy, the useful section is "Let's test element-based referrerpolicy" at the bottom of the page.


Examples of unexpected behaviour (can be reproduced on the test site)

1. On https://site-one.example/path/foo with a document-level policy of strict-origin-when-cross-origin:

2. On https://site-one.example/path/foo with a document-level policy of no-referrer:

3. On https://site-one.example/path/foo with an document-level policy of no-referrer-when-downgrade:

A referrerpolicy on a <script> element seems to be honored on Safari desktop but not on iOS.


Can this be? Why / What would be the expected behaviour?

(I see that referrerpolicy support has been implemented).


Thank you!


- Maud