Hacker News new | ask | show | jobs
by Sophira 553 days ago
I was looking at this current again just now, and realised it could use a bit of explanation.

I typically have lots of tabs open at once. Hundreds, in some cases. A window escaping the bounds of the viewport would imply that it also escapes the bounds of the browser tab - which is to say, can pop up no matter which tab I'm on at any given moment.

The better solution, I believe, would be to pop up any notification using the notification API, and then once the user has been taken to the browser tab, you can then show your dialog (restricted to the viewport, of course).

If I want a window to pop up over anything else, I'll use native apps, not browser apps.