Bug 1500129 - Cleaned up openPreferences call. r=dao
authorinspiro <sharma.divyansh.501@iitg.ac.in>
Tue, 23 Oct 2018 10:56:43 +0000
changeset 442548 bb60a56fe1d0ba49772a9629cde805ef833e6440
parent 442547 02067918a4d85206c71f73fd9fe0a0ebfd8e1d60
child 442549 dc03893f95d727b995e1365a41d3c20558cc54bf
push id34913
push useraciure@mozilla.com
push dateTue, 23 Oct 2018 16:49:58 +0000
treeherdermozilla-central@ff3ed362e82f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1500129
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);
   },
 };