News for hackers. Stuff that matters.
Re:About rel=noopener (2016) by metafunctor on Thursday January 25, 2018 @06:25AM (#16230165)
I remember this very thing being discussed years ago.

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.

Re:About rel=noopener (2016) by discreditable on Thursday January 25, 2018 @10:46AM (#16231587)
> 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?

That does nothing for deployed sites that aren't actively developed? Browser devs have decided those sites are worth not breaking.

Re:About rel=noopener (2016) by metafunctor on Tuesday January 30, 2018 @05:12AM (#16264177)
Browsers should show a warning that a "possibly insecure legacy mode" is in use.

If browsers enforce HTTPS in a similar way, I don't see why they shouldn't enforce better security elsewhere as well.

Re:About rel=noopener (2016) by beaconstudios on Thursday January 25, 2018 @07:28AM (#16230363)
in semantic versioning terms, we need a "2.x" of the HTML API. We'd need to break backwards compatibility across the board and have sites opt in to use v2 using some kind of flag. The benefits would be massive but it would also require browsers to essentially have 2 different engines to support both legacy and v2 websites.
Re:About rel=noopener (2016) by Forge36 on Thursday January 25, 2018 @07:45AM (#16230431)
Internet Explorer tried to maintain multiple rendering engines. Every version from IE5 to IE11 (if you open the debug console you can switch rendering modes) And now they have Edge. It never took off.

I suspect the cost of breaking web compatibility intentionally to accomplish this goal would kill a browser, as authentication, payment, and many other things would suddenly break.

Re:About rel=noopener (2016) by beaconstudios on Thursday January 25, 2018 @08:11AM (#16230545)
this is why I say it would have to be opt-in through something like a header or tag on the page in question (although I don't think doctype would work well for this). Existing sites would use the current engine and sites that explicitly stated they were for the new engine would be handled differently.
Re:About rel=noopener (2016) by manigandham on Thursday January 25, 2018 @01:45PM (#16233347)
That's exactly what IE did with the `X-UA-Compatible` meta tag. It's just more work for both browsers and websites to manage, which is why it's not used anymore.

https://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).a...

Re:About rel=noopener (2016) by kijin on Thursday January 25, 2018 @11:47AM (#16232220)
Content-Security-Policy might be a good way to opt in to this kind of behavior.
Re:About rel=noopener (2016) by lioeters on Thursday January 25, 2018 @01:42PM (#16233321)
How about a Babel-like transpiler, that would take HTML written in this newly proposed standard and outputs backward-compatible code? For example, adding rel="noopener" by default to external links.
Re:About rel=noopener (2016) by core-questions on Thursday January 25, 2018 @02:06PM (#16233555)
This could work, but ultimately it's just more and more duct tape. It's high time to start with a cleaner, more secure slate and let people migrate maintained applications over; the old stuff can run in a more secured, more limited sandbox.
Re:About rel=noopener (2016) by IncRnd on Thursday January 25, 2018 @12:58PM (#16232912)
> in semantic versioning terms, we need a "2.x" of the HTML API.

Version # is not the phrase you want to overload. HTML5 is the latest version and was released 4 years ago.

Re:About rel=noopener (2016) by beaconstudios on Saturday January 27, 2018 @02:38PM (#16247705)
I'm not suggesting overloading it - just trying to come up with a fitting metaphor.
Re:About rel=noopener (2016) by stephenr on Thursday January 25, 2018 @07:50AM (#16230451)
HTML 2.0 was published in 1995.

I doubt this behaviour comes purely under html anyway as its only usable from the javascript environment.

More likely is a content security policy... oh looke there: https://w3c.github.io/webappsec-csp/#directive-disown-opener

Re:About rel=noopener (2016) by beaconstudios on Thursday January 25, 2018 @08:10AM (#16230539)
I'm aware of that - the existing HTML versions have been pretty much incremental though. XHTML was a breaking change but more for syntactical reasons. By a "2.x" version I mean a fresh rewrite with no requirements for parity with previous versions, so the lessons of the current engine can be applied in a clean-slate environment.
Re:About rel=noopener (2016) by stephenr on Thursday January 25, 2018 @08:58AM (#16230765)
i feel like there must be an xkcd that sums up your suggestion...
Re:About rel=noopener (2016) by illustrioussuit on Thursday January 25, 2018 @09:15AM (#16230852)
Re:About rel=noopener (2016) by beaconstudios on Thursday January 25, 2018 @10:19AM (#16231325)
I'm not sure that applies here but it could definitely suffer from the Second System Effect - https://en.wikipedia.org/wiki/Second-system_effect