Comment

Comment by lxgr

That's not a failure of Safari, it's required by window.open API semantics, in particular by the default Cross-Origin-Opener-Policy of "unsafe-none" [1].

By setting a different policy, sites can protect themselves against this.

I guess technically browsers could open new windows in a new browsing context group regardless of this setting and relay the allowed types of messages via IPC (if any), but that would be a major performance hit, and I don't think any other browsers do it differently.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cr...

parent lxgr 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton