The website can know the URL you entered in the second tab if the two tabs are same-origin
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: duckhiem, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Steps to reproduce:
On macOS Ventura 13.1, open Firefox, clear all the caches, re-start Firefox.
Load the first URL:
https://mdn.github.io/dom-examples/web-storage/event.html
In this website, the URL line has no value.
Open the second tab, load the second URL:
https://mdn.github.io/dom-examples/web-storage
Go back to the first tab where https://mdn.github.io/dom-examples/web-storage/event.html is, the URL line shows https://mdn.github.io/dom-examples/web-storage.
Actual results:
The first tab can know the second tab is loaded when the second URL is a sub-page of the first URL.
Expected results:
I don't know, I just concern about this behavior.
Comment 1•3 years ago
|
||
Same-origin pages loaded in the browser can communicate with each other. This is just a given of how the web is architected, happens in all browsers, and is not a security issue. The same issue would not work if the second page was not also loaded from https://mdn.github.io, which is how security boundaries are enforced.
Description
•