Safari 17.1 iframes referrer policy in Private browsing mode too restrictive

Hi,


I'm seeing an issue in Safari 17.1 and above in private browsing mode where an iframe's document.referrer property is empty. I've added a referrerPolicy attribute to my iframe but Safari ignores its value. Disabling the Use advanced tracking and fingerprinting protection option lifts that restriction and results in the document.referrer property having a value as normally expected.


What change introduced in Safari 17.1 for private browsing mode could be the cause of this behaviour? Is it now enforcing a no-referrer referrer policy on iframes? This article seems to hint that the referrer policy would now be origin, not no-referrer, but I cannot find any confirmation of this on Apple's website, and this should anyway not cause the behaviour I'm seeing.


Is this a bug or a known issue?


Is there any way in HTML/JavaScript to circumvent this behaviour?


Cheers,

Oliver

MacBook Pro (M1, 2020)

Posted on Dec 7, 2023 05:59 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 7, 2023 10:35 PM

It's almost like Apple (or one of the Safaris' developers) just decided one day that web applications do not exist.


Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari 17.1 iframes referrer policy in Private browsing mode too restrictive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.