summaryrefslogtreecommitdiffstats
path: root/toolkit/modules/addons
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-02 04:25:47 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:26:25 +0200
commit73289f53892c4c48eedf8de5a40af74ff9b55a09 (patch)
treec3991d265b47fad7c75cf45812ac1963103ccf7b /toolkit/modules/addons
parent4acc0d58cb0fa989d609972493be363c105f2594 (diff)
downloadUXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar
UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar.gz
UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar.lz
UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar.xz
UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.zip
Issue #65 - Remove AppConstants from toolkit/modules
Except for secondscreen
Diffstat (limited to 'toolkit/modules/addons')
-rw-r--r--toolkit/modules/addons/WebRequest.jsm8
1 files changed, 3 insertions, 5 deletions
diff --git a/toolkit/modules/addons/WebRequest.jsm b/toolkit/modules/addons/WebRequest.jsm
index 76114d7ba..26118e43f 100644
--- a/toolkit/modules/addons/WebRequest.jsm
+++ b/toolkit/modules/addons/WebRequest.jsm
@@ -19,8 +19,6 @@ Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/Task.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
- "resource://gre/modules/AppConstants.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "BrowserUtils",
"resource://gre/modules/BrowserUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "ExtensionUtils",
@@ -842,9 +840,9 @@ var onBeforeRequest = {
get allowedOptions() {
delete this.allowedOptions;
this.allowedOptions = ["blocking"];
- if (!AppConstants.RELEASE_OR_BETA) {
- this.allowedOptions.push("requestBody");
- }
+#ifndef RELEASE_OR_BETA
+ this.allowedOptions.push("requestBody");
+#endif
return this.allowedOptions;
},
addListener(callback, filter = null, opt_extraInfoSpec = null) {