Sure, but the separate window can be on a different domain. Now you have a way to share cookies across multiple websites on different domains if all of them include an iframe to this external domain. And you can use in-browser messages (see window.postMessage()) to communicate between iframes and main window.
IIRC an iframe contents is treated as a separate window, so cookies aren’t shared either
Cosmicomical@lemmy.world 2 months ago
monogram@feddit.nl 2 months ago
Indeed see sibling comment programming.dev/comment/11983146
Feyd@programming.dev 2 months ago
developer.mozilla.org/en-US/docs/…/postMessage
monogram@feddit.nl 2 months ago
That’s horrific WHY?