Starting from version 72, Firefox will require a user gesture when calling Notification.requestPermission() [0] and PushManager.subscribe() [1].
Requests that do not follow a user gesture will be automatically denied. We will, however, show a small UI indicator that can be used by Firefox users to retroactively grant permission to the site. Starting from Firefox 71, there will be a warning in the developer console. This restriction was implemented and turned on by default in Nightly and Beta earlier this year [2]. Until recently we ran a set of experiments and studies around notification permission prompts. We're making this change in order to improve the acceptance rate of notification prompts in Firefox after running a number of user studies. The details and rationale can be found in our blog post[3]. This change will be made in bug 1593644. Please see the above linked blog post for more information and let me know if you have any questions or concerns. Thanks, Johann [0] https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission [1] https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe [2] https://groups.google.com/forum/#!msg/mozilla.dev.platform/15s-U_wXHeA/cekU32UyBwAJ [3] https://blog.mozilla.org/futurereleases/2019/11/04/restricting-notification-permission-prompts-in-firefox/ _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform