How to completely disable push notifications in Firefox?

I am using Firefox (version 58.0.1) and for awhile now, Firefox and other browsers have implemented this feature known as 'Push Notifications.'

It now seems like every site wants to 'Push' notifications to you. This has become a new form of pop-up, and is an intrusive technology. Because of this constant bombardment of push notification requests, I wish to completely disable push notifications.

I do not wish to disable on a site-by-site basis. I want to disable this 'feature' completely, for every site, forever.

sample push notification request

I have looked through the Firefox settings, and through the documentation on the Mozilla website, but there is nothing official on how to disable the Push Notifications. 2


Solution 1:

From further research, I discovered that you have to go into the about:config interface. HERE BE DRAGONS! (1) Or if you use the American locale, Your warranty might be voided (2)

I changed four settings to FALSE:

  • dom.webnotifications.enabled
  • dom.webnotifications.serviceworker.enabled
  • dom.pushconnection.enabled
  • dom.push.enabled

(1) Here be dragons:

Here be dragons

(2) This might void your warranty: This might void your warranty!

Solution 2:

With the release of Firefox 59, we can now disable push notifications using the default Options page.

The official release notes for Firefox 59 described the modification:

Added settings in about:preferences to stop websites from asking to send notifications

You can configure this option in the following manner:

  1. Navigate to the about:preferences page
  2. Click on Privacy & Security on the upper-left
  3. Scroll down to the Permissions section on the right
  4. Click on the Settings... button associated with Notifications

    Privacy & Security

  5. In the subsequent window check the box to Block new requests asking to allow notifications
  6. Click the Save Changes button

    Settings - Notification Permissions

Solution 3:

Disable push notifications and sync config

Paste this lines to config prefs.js file You can find the config file at:

%APPDATA%\Mozilla\Firefox\Profiles\XXXXXX.default\prefs.js

user_pref("dom.webnotifications.enabled", false);
user_pref("dom.webnotifications.enabled", false);
user_pref("dom.webnotifications.serviceworker.enabled", false);
user_pref("dom.pushconnection.enabled", false);
user_pref("dom.push.enabled", false);
user_pref("services.sync.prefs.sync.dom.webnotifications.enabled", true);
user_pref("services.sync.prefs.sync.dom.webnotifications.serviceworker.enabled", true);
user_pref("services.sync.prefs.sync.dom.pushconnection.enabled", true);
user_pref("services.sync.prefs.sync.dom.push.enabled", true);