Bug 1501552 - Link directly to permission preferences from web notifications. r=jaws
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 24 Oct 2018 15:11:13 +0000
changeset 491159 481aad44be651f02ef3c7596802011ccd40631c1
parent 491158 1a0b7f5e0282052c0bd67a98143cdcd2c4cb39fa
child 491160 1dc4651530f8290007b9440c9013493cc0ef65f2
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersjaws
bugs1501552
milestone65.0a1
Bug 1501552 - Link directly to permission preferences from web notifications. r=jaws Differential Revision: https://phabricator.services.mozilla.com/D9619
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -708,17 +708,17 @@ BrowserGlue.prototype = {
     const options = {filter: ACTIVITY_STREAM_ID};
     this.pingCentre.sendPing(payload, options);
   },
 
   // nsIObserver implementation
   observe: async function BG_observe(subject, topic, data) {
     switch (topic) {
       case "notifications-open-settings":
-        this._openPreferences("privacy", { origin: "notifOpenSettings" });
+        this._openPreferences("privacy-permissions", { origin: "notifOpenSettings" });
         break;
       case "final-ui-startup":
         this._beforeUIStartup();
         break;
       case "browser-delayed-startup-finished":
         this._onFirstWindowLoaded(subject);
         Services.obs.removeObserver(this, "browser-delayed-startup-finished");
         break;