You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the record, both the latest versions of Chrome and Safari behave similarly. They treat all files as having same origin. However, Firefox handles this correctly and gives a unique localStorage context to each unique file path.
Issue Details
Electron Version: 7.1.2 (but also same behavior on 5.x and 6.x)
Operating System: macOS 10.14.6
Expected Behavior
Different file:// paths should be treated as different origins, according to @MarshallOfSound's post here:
However, different files appear to be able to share localStorage. I've attached a simple demo project.
index.html:
child.html (as iframe):
We expect child.html, which has a different file:// location, to not be able to read index.html's localStorage values.
Actual Behavior
child.html iframe is able to read the localStorage values that index.html set.
To Reproduce
Run this project:
electron-same-origin.zip
The text was updated successfully, but these errors were encountered: