Bug 1569915 - Add AddonManager.jsm to preferences.js. r=darktrojan a=jorgk
authorRichard Marti <richard.marti@gmail.com>
Tue, 30 Jul 2019 21:29:53 +0200
changeset 36136 96b2c9a52bb8c7299f81bed600e90694d7eaa2f4
parent 36135 67168132906c031451f350790415863493d55c9c
child 36137 f6eb927992c864c784ff6e05eb144a927e726146
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersdarktrojan, jorgk
bugs1569915
Bug 1569915 - Add AddonManager.jsm to preferences.js. r=darktrojan a=jorgk
mail/components/preferences/preferences.js
--- a/mail/components/preferences/preferences.js
+++ b/mail/components/preferences/preferences.js
@@ -10,16 +10,19 @@ var {Services} = ChromeUtils.import("res
 var {AppConstants} = ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
 var {MailServices} = ChromeUtils.import("resource:///modules/MailServices.jsm");
 var {ExtensionSupport} = ChromeUtils.import("resource:///modules/ExtensionSupport.jsm");
 
 var paneDeck = document.getElementById("paneDeck");
 var prefPanes = [...document.getElementsByTagName("prefpane")];
 var selector = document.getElementById("selector");
 
+ChromeUtils.defineModuleGetter(this, "AddonManager",
+                               "resource://gre/modules/AddonManager.jsm");
+
 (function() {
   for (let pane of prefPanes) {
     if (pane.id == "paneChat" && !Services.prefs.getBoolPref("mail.chat.enabled")) {
       continue;
     }
     if (pane.id == "paneLightning" &&
         !ExtensionSupport.loadedLegacyExtensions.has("{e2fda1a4-762b-4020-b5ad-a41df1933103}")) {
       continue;