summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/content/extensions.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-05-01 16:14:17 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-05-01 16:14:17 -0400
commitec1df1e8a21d83e393dbfb6f5cc03657b11af0fc (patch)
treed2aebb105e3240d68b449cec2d0b4134dc2a073d /toolkit/mozapps/extensions/content/extensions.js
parentdc43d59ae36d52a09bc7328f0cbb09c981e7adc8 (diff)
downloadUXP-ec1df1e8a21d83e393dbfb6f5cc03657b11af0fc.tar
UXP-ec1df1e8a21d83e393dbfb6f5cc03657b11af0fc.tar.gz
UXP-ec1df1e8a21d83e393dbfb6f5cc03657b11af0fc.tar.lz
UXP-ec1df1e8a21d83e393dbfb6f5cc03657b11af0fc.tar.xz
UXP-ec1df1e8a21d83e393dbfb6f5cc03657b11af0fc.zip
[TychoAM] Make the Add-ons Manager conditionally devtools free
Diffstat (limited to 'toolkit/mozapps/extensions/content/extensions.js')
-rw-r--r--toolkit/mozapps/extensions/content/extensions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js
index 8d9c132e6..fc4392231 100644
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -18,10 +18,12 @@ Cu.import("resource://gre/modules/addons/AddonRepository.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
"resource://gre/modules/PluralForm.jsm");
+#ifdef MOZ_DEVTOOLS
XPCOMUtils.defineLazyGetter(this, "BrowserToolboxProcess", function () {
return Cu.import("resource://devtools/client/framework/ToolboxProcess.jsm", {}).
BrowserToolboxProcess;
});
+#endif
const PREF_DISCOVERURL = "extensions.webservice.discoverURL";
const PREF_DISCOVER_ENABLED = "extensions.getAddons.showPane";
@@ -1002,6 +1004,7 @@ var gViewController = {
}
},
+#ifdef MOZ_DEVTOOLS
cmd_debugItem: {
doCommand: function cmd_debugItem_doCommand(aAddon) {
BrowserToolboxProcess.init({ addonID: aAddon.id });
@@ -1015,6 +1018,7 @@ var gViewController = {
return aAddon && aAddon.isDebuggable && debuggerEnabled && remoteEnabled;
}
},
+#endif
cmd_showItemPreferences: {
isEnabled: function cmd_showItemPreferences_isEnabled(aAddon) {