Earlier quoted context omitted.
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"
IIRC.
41–50 of 115 posts
This is the new pop-under. Sites trying to serve as many ads as possible will open links with target=_blank and redirect the old window to an ad.
Earlier quoted context omitted.
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?
For those systems, though, i'd imagine most of them would have these popup windows on the same origin, right? So having browsers prevent child windows changing their parent's location if they are cross-origin seems like a sensible idea, or am i missing something else?
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.
Earlier quoted context omitted.
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?
Earlier quoted context omitted.
> 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?
Good call! I guess i haven't seen any of those. But i've seen some internal web based systems that relied too heavily on popup windows and started breaking when tabbed browsing became a thing and brosers started blocking popup windows by default, so i don't doubt that there are probably systems out there relying on this weird behavior of target=_blank. For those systems, though, i'd imagine most of them would have th…
They ever heard of "security by default"? I guess no.
Earlier quoted context omitted.
> 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?
Probably there are, but they're hardly likely to rely on it working cross-origin, and if they are they almost deserve to have it broken...
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.