Bug 1501552 - Link directly to permission preferences from web notifications. r=jaws, a=RyanVM
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 24 Oct 2018 15:11:13 +0000
changeset 500832 221f5453ccfb8c5aa7c9f5f632b9b4fc65e08059
parent 500831 2cbb3d6f52b09d55770daf277c509e087d88846d
child 500833 f276cdee219012cc67ac83cb1687cf3d9ea3011a
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, RyanVM
bugs1501552
milestone64.0
Bug 1501552 - Link directly to permission preferences from web notifications. r=jaws, a=RyanVM 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;