summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/AddonManager.jsm
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-05-01 23:37:13 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-05-01 23:37:13 -0400
commit832046aeb726dee290d2827a20d571034b6bc64a (patch)
tree2c32723048e0a5a0beb399b5317854c68e30489f /toolkit/mozapps/extensions/AddonManager.jsm
parenta930a790d53f82c22167eec57d24eec943298968 (diff)
downloadUXP-832046aeb726dee290d2827a20d571034b6bc64a.tar
UXP-832046aeb726dee290d2827a20d571034b6bc64a.tar.gz
UXP-832046aeb726dee290d2827a20d571034b6bc64a.tar.lz
UXP-832046aeb726dee290d2827a20d571034b6bc64a.tar.xz
UXP-832046aeb726dee290d2827a20d571034b6bc64a.zip
[TychoAM] Do not allow Jetpack extensions to install if Jetpack isn't actually built
This does not cover the previous case of an application dropping jetpack support.. This follows the WebExtension route. A new case will have to be redeveloped if an existing application drops jetpack support.
Diffstat (limited to 'toolkit/mozapps/extensions/AddonManager.jsm')
-rw-r--r--toolkit/mozapps/extensions/AddonManager.jsm2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/AddonManager.jsm b/toolkit/mozapps/extensions/AddonManager.jsm
index 3913c2088..d4c3a6967 100644
--- a/toolkit/mozapps/extensions/AddonManager.jsm
+++ b/toolkit/mozapps/extensions/AddonManager.jsm
@@ -2671,6 +2671,8 @@ this.AddonManager = {
ERROR_CORRUPT_FILE: -3,
// An error occured trying to write to the filesystem.
ERROR_FILE_ACCESS: -4,
+ // The downloaded file seems to be Jetpack.
+ ERROR_JETPACKSDK_FILE: -8,
// The downloaded file seems to be WebExtension.
ERROR_WEBEXT_FILE: -9,