News for hackers. Stuff that matters.
Re:Firefox 72.0 by megous on Tuesday January 07, 2020 @10:44AM (#21980999)
Well, it's delightfully stupid.

In a webapp where you present user a button to activate notifiactions, when the user clicks the button seemingly nothing happens in FF72 (user is focussed on a big enable notifiactions button in the web app and may not notice that some tiny gray icon wiggled a little in the address bar).

On a big screen a button in the middle of the screen is so far away from the address bar, that you don't see any change in the address bar at all in the peripheral vision.

So yeah, web apps that don't try to force the user to enable notifications are now punished for good behavior again.

EDIT: So it's not so stupid, see below.

Re:Firefox 72.0 by krtkush on Tuesday January 07, 2020 @10:59AM (#21981153)
How about web apps too not show annoying pop-ups which are pretty useless in most cases? Websites which show two pop-ups (custom pop-up followed by browser pop-up) are worse.
Re:Firefox 72.0 by megous on Tuesday January 07, 2020 @11:02AM (#21981195)
My website doesn't show any popups. I have a settings dialog that user can open and setup email and other notifications.

This will just not work anymore. I'll have to add some long winded FF specific explanation on what to do after clicking the button.

Anyway the FF UI is broken if user physically can't see any reaction from the browser after he requests notifications by clicking anywhere on the page.

Re:Firefox 72.0 by johannh on Tuesday January 07, 2020 @11:25AM (#21981423)
If your users are clicking a button then it should actually show the permission prompt, unless you're losing the user interaction somewhere in the callback (by doing something async first)

https://hacks.mozilla.org/2019/11/upcoming-notification-perm...

This is a frequent "mistake"/issue however, and we're working on a mitigation for it.

Re:Firefox 72.0 by megous on Tuesday January 07, 2020 @11:52AM (#21981732)
I'm doing this:

https://megous.com/dl/tmp/sub.txt

I guess this is then happening because I'm first checking if there's a subscription via `pushManager.getSubscription` before creating a new one in the event handler.

Yep, dropping getSubscription makes the popup appear again.

Re:Firefox 72.0 by choward on Tuesday January 07, 2020 @12:26PM (#21982129)
I receive these popups multiple times per day. It is rare that I actually want notifications from your web site (or mobile app). Messaging is one of the few use cases that comes to mind but even then I don't always want to be notified.

Do you mind me asking what your notifications are for?

Re:Firefox 72.0 by megous on Thursday January 09, 2020 @08:49AM (#22001102)
For wahtever user wants, like mentions from others in comments. It's configurable.