content icon indicating copy to clipboard operation
content copied to clipboard

Updating document.referrer documentation to reflect latest behavior inside an iframe.

Open animesh-g opened this issue 1 year ago • 1 comments

Description

document.referrer is equivalent to parent window's window.location.origin not window.location.href inside an iframe. The current documentation mentions an older behavior.

Motivation

In Safari, document.referrer is not equivalent window.parent.location.href for a while. It always returns only the origin. Now same behavior can be observed on latest Chrome, Firefox and other browsers as well. Although I couldn't pin point on which version this behavior got changed. Probably it is due to some privacy related changes in between.

Additional details

https://webkit.org/blog/8311/intelligent-tracking-prevention-2-0/ https://stackoverflow.com/q/57143306

Related issues and pull requests

NA

animesh-g avatar Feb 08 '24 09:02 animesh-g

Preview URLs

(comment last updated: 2024-04-09 12:30:54)

github-actions[bot] avatar Feb 08 '24 09:02 github-actions[bot]

I've made some clarifications directly on this PR, I hope you don't mind me committing directly. I'll merge this one shortly - thanks a lot for the submission! 🎉

bsmth avatar Apr 09 '24 12:04 bsmth

Thanks a lot for adding clarifications!!

animesh-g avatar Apr 09 '24 15:04 animesh-g