Hacker News new | ask | show | jobs
by afavour 1479 days ago
Safari goes beyond Firefox and Chrome here, making the sane choice to only let you show a notifications permission prompt in response to a click. That alone makes it considerably better than what we're subjected to today with permission prompts showing on page load.
1 comments

Firefox and Chrome don't allow permission prompts without user input. That's why all news sites will show you a banner asking you to click it to enable notifications.

I believe Firefox doesn't show the prompt at the top at all anymore nowadays and just has a glowing notification bubble in the address bar, but it's been a while.

>Firefox and Chrome don't allow permission prompts without user input.

They absolutely do.

https://web.dev/notification-on-start/