content
content copied to clipboard
Updating document.referrer documentation to reflect latest behavior inside an iframe.
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
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! 🎉
Thanks a lot for adding clarifications!!