Bug 1500129 - Cleaned up openPreferences call. r=dao
authorinspiro <sharma.divyansh.501@iitg.ac.in>
Tue, 23 Oct 2018 10:56:43 +0000
changeset 490888 bb60a56fe1d0ba49772a9629cde805ef833e6440
parent 490887 02067918a4d85206c71f73fd9fe0a0ebfd8e1d60
child 490889 dc03893f95d727b995e1365a41d3c20558cc54bf
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersdao
bugs1500129
milestone65.0a1
Bug 1500129 - Cleaned up openPreferences call. r=dao Differential Revision: https://phabricator.services.mozilla.com/D9498
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -587,18 +587,17 @@ const gStoragePressureObserver = {
       }
       msg = prefStrBundle.getFormattedString(descriptionStringID, [brandShortName]);
       buttons.push({
         label: prefStrBundle.getString(prefButtonLabelStringID),
         accessKey: prefStrBundle.getString(prefButtonAccesskeyStringID),
         callback(notificationBar, button) {
           // The advanced subpanes are only supported in the old organization, which will
           // be removed by bug 1349689.
-          let win = gBrowser.ownerGlobal;
-          win.openPreferences("privacy-sitedata", { origin: "storagePressure" });
+          openPreferences("privacy-sitedata", { origin: "storagePressure" });
         },
       });
     }
 
     notificationBox.appendNotification(
       msg, NOTIFICATION_VALUE, null, notificationBox.PRIORITY_WARNING_HIGH, buttons, null);
   },
 };