diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-05-01 23:37:13 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-05-01 23:37:13 -0400 |
commit | 832046aeb726dee290d2827a20d571034b6bc64a (patch) | |
tree | 2c32723048e0a5a0beb399b5317854c68e30489f /toolkit/mozapps/extensions/AddonManager.jsm | |
parent | a930a790d53f82c22167eec57d24eec943298968 (diff) | |
download | UXP-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.jsm | 2 |
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, |