News for hackers. Stuff that matters.
Re:Ask HN: Why can't web browsers block pop-ups? by tabob on Thursday November 26, 2020 @03:38PM (#25223347)
It's been 31 years and web browsers are still utter trash. The developers at Safari, Firefox, Chrome and every other browser should be ashamed for allowing Pop-up and pop-under windows to even exist. It's functionality which needs to go away. If I don't explicitly open a link in a new window, that link should never, ever, EVER open in a new window.

Why is this still acceptable behavior? It has zero benefit to any end user.

Re:Ask HN: Why can't web browsers block pop-ups? by psnehanshu on Thursday November 26, 2020 @03:55PM (#25223466)
It's hard to always tell when you should or shouldn't block a pop-up. Many browsers tried to solve this by blocking new windows being automatically opened if a click didn't happen just a little before it.

Necessary use cases of pop-up windows, one is oauth login (sign in with Google/Facebook/Twitter)

Re:Ask HN: Why can't web browsers block pop-ups? by tabob on Thursday November 26, 2020 @04:06PM (#25223524)
At the absolute very least every single web browser should have the ability to ask:

* if you want to allow the pop-up * if you want to allow a site to open a new window/tab * if you want to allow a site to open a new pop-under window

This really shouldn't require special Greasemonkey scripts, block lists or commercial extensions. 99% of the time the user does not want that pop-up/pop-under/modal dialogue.

I'm starting to think that developers at almost all browsers are bribed by advertisers to allow these dark patterns.

Re:Ask HN: Why can't web browsers block pop-ups? by ksaj on Thursday November 26, 2020 @05:59PM (#25224158)
Likewise, does anybody ever click Yes to browser notifications? That seems like it would be so intrusive.