108 points · by edance · 8y ago · 46 comments
Or do I need to tag all my links with a long series of "Don't allow this crazy thing", "Or that other thing", etc.
In an ideal world, these apps would have been rewritten a long time ago using more modern techniques. In reality, browsers bend over backwards to maintain backward compatibility with existing apps.
Since this is still a problem, I'd say the web needs a way to gracefully migrate away from bad decisions like window.opener being available across origins.
Should we not decide that cross-origin window.opener is now deprecated, show big fat warnings on the developer console when it's used, and remove it in a year or two? I'd like an option to completely turn it off on my browser. Like third-party cookies, cross-origin access to just about anything is a bad idea.
That does nothing for deployed sites that aren't actively developed? Browser devs have decided those sites are worth not breaking.
Browsers deprecate security related features all the time. See SSL, HSTS [EDIT: HPKP*], etc.
At the very least, browsers could remain backward compatible but mark the URI as “Insecure” in the address bar if the link could result in tab hijacking. Although on second thought, that would be challenging because it would require parsing the source of all links.
HSTS is what tells the browser "this website MUST be served over TLS".
HPKP is what tells the browser "this website must be served over TLS with this exact key".
HPKP is being deprecated due to the large "footgun" it creates for websites, and the difficulty at actually managing it. It's being replaced by "Expect-CT" which is a much easier and safer way of getting a similar result.
More about the performance "benefit" here: https://jakearchibald.com/2016/performance-benefits-of-rel-n...
But in the real world most websites don't do this. What likely matters to the user is that the page they're navigating to opens faster; the user likely doesn't care about the performance of the hidden tab they just came from.
Of course, `noopener` has security and privacy benefits which may outweigh the performance costs (if there are any).
* I also don't understand how this is being served. If you go to https://github.com/mathiasbynens there should be a repository called mathiasbynens.github.io right? But I can't find it.
Not exactly - the subdomain is the account and the path name is the repository (and the repository's `gh-pages` branch is what's returned).