Live data from Hacker News

About rel=noopener

mathiasbynens.github.io

31–40 of 115 posts

Re: About rel=noopener

#31
post #3

Well I just had an "Oh sh*t" moment thinking about all the websites I built over the years at my old company that had target=_blank to commentors sites... Aw crap. Not my problem anymore, but I never even considered this.

Maybe you could send them a note? Do you know anybody who's still working on the project?

It's a complicated situation. They owe me a bit of money and don't reply to any of my emails.

Re: About rel=noopener

#32
post #31

Earlier quoted context omitted.

Maybe you could send them a note? Do you know anybody who's still working on the project?

It's a complicated situation. They owe me a bit of money and don't reply to any of my emails.

Can't you sue them then? Or at the least threaten to sue?

Re: About rel=noopener

#33
post #9
post #2

Does this "work" for cross origin requests? If I plant a `target=_blank` in my website, user clicks it, goes to my second website, do I have control over the website the link came from? If not, I don't see the security issue. Of course you can XSS yourself, what have you.

To some extent.. Yes. The attacker can replace the current page with his own phising page. Of course, the hostname part of the url would change, but the user is unlikely to notice that.

Case in point: People still fall for things like `facebook.com.totallynotaphishingsite.com'

Re: About rel=noopener

#34

sigh This is a perfect example of a title that should not have been changed. The original was objectively better than the current one. If you don't already know what rel=noopener is, you'd have no reason at all to click through on this. But the earlier title actually explained something about the content on the other end of the link.

It would be helpful if you stated what the original title actually was, especially now that you have the top-level post!

Re: About rel=noopener

#35
post #24

sigh This is a perfect example of a title that should not have been changed. The original was objectively better than the current one. If you don't already know what rel=noopener is, you'd have no reason at all to click through on this. But the earlier title actually explained something about the content on the other end of the link.

HN submissions are kind of like startups. Often you have to break the rules to get off the ground. But once you have some lift, it's time to become boring and straighten out.

I have no idea what this submission is about. Why would I want rel=noopener?

Re: About rel=noopener

#36
post #34

sigh This is a perfect example of a title that should not have been changed. The original was objectively better than the current one. If you don't already know what rel=noopener is, you'd have no reason at all to click through on this. But the earlier title actually explained something about the content on the other end of the link.

It would be helpful if you stated what the original title actually was, especially now that you have the top-level post!

It was something like "TIL: target=_blank is harmful"

Re: About rel=noopener

#37
post #30

Earlier quoted context omitted.

This is one of the reasons why FB et al go to a special link before opening the actual target site.

That's more of a happy accident. Their primary reason is to track things.

You can track click without a redirect.

Re: About rel=noopener

#38
post #19

Is there a practical reason that a reference to the opener window is given to the opened window? That seems like something we could do without.

Example: Google Slides where one tab has the presentation and another tab has the speaker notes. You want those to be in sync.

Re: About rel=noopener

#39
post #24

Earlier quoted context omitted.

HN submissions are kind of like startups. Often you have to break the rules to get off the ground. But once you have some lift, it's time to become boring and straighten out.

I have no idea what this submission is about. Why would I want rel=noopener?

The original title (and the point of the article) was about the security problems target=_blank has.

You want rel=noopener because the page it navigates to can't affect the content of the opening page.

Re: About rel=noopener

#40

> Note that this also works when index.html and malicious.html are on different origins — window.opener.location is accessible across origins! ... Why. Why would anyone (not maliciously) consider this desirable behaviour?

Agreed. But what's more intriguing to me is that the proposed "solution" is to add yet another hack on top of that (rel=noopener), instead of doing something to fix the broken behavior of target=_blank. I doubt that many sites rely on this broken behavior. And even if they do, browsers could still block it and show some warning to the user "Hey, this tab that just opened wants to change the URL of this other tab [all…

> I doubt that many sites rely on this broken behavior.

Any web based system where a pop up dialog is opened to allow the user to select something that is then inserted into the original page?

Post reply on HN