diff options
author | girst <girst@users.noreply.github.com> | 2024-02-29 18:52:05 +0100 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2024-02-29 18:52:05 +0100 |
commit | 25664f0b2c3238704c7509cc661d52b6b5763599 (patch) | |
tree | a39b54f300bbd55527b316ae3a77d07763ce5f15 /legacy/BootstrapLoader.jsm | |
parent | 4c00a3cd3e332c9d2fd0ce3fc02fb16236c06e31 (diff) | |
download | legacywolf-25664f0b2c3238704c7509cc661d52b6b5763599.tar.gz legacywolf-25664f0b2c3238704c7509cc661d52b6b5763599.zip |
fix setting softDisabled state
not that it is too important. Blocklist.jsm does not export blocklist
state any more. XPIInstall.jsm does this, since way before mozilla61:
const { nsIBlocklistService } = Ci;
addon.softDisabled = addon.blocklistState == nsIBlocklistService.STATE_SOFTBLOCKED;
c.f. https://searchfox.org/mozilla-central/rev/b503616295d69fee56300e5e2093599e6fb4f0e2/toolkit/mozapps/extensions/internal/XPIInstall.jsm#531
Diffstat (limited to 'legacy/BootstrapLoader.jsm')
-rw-r--r-- | legacy/BootstrapLoader.jsm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/legacy/BootstrapLoader.jsm b/legacy/BootstrapLoader.jsm index ff52e80..a4010b3 100644 --- a/legacy/BootstrapLoader.jsm +++ b/legacy/BootstrapLoader.jsm @@ -11,7 +11,6 @@ const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm") XPCOMUtils.defineLazyModuleGetters(this, { AddonInternal: "resource://gre/modules/addons/XPIDatabase.jsm", - Blocklist: "resource://gre/modules/Blocklist.jsm", InstallRDF: "resource://legacy/RDFManifestConverter.jsm", }); const Services = globalThis.Services || ChromeUtils.import("resource://gre/modules/Services.jsm").Services; @@ -274,7 +273,7 @@ var BootstrapLoader = { } addon.userDisabled = false; - addon.softDisabled = addon.blocklistState == Blocklist.STATE_SOFTBLOCKED; + addon.softDisabled = addon.blocklistState == Ci.nsIBlocklistService.STATE_SOFTBLOCKED; addon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DEFAULT; addon.userPermissions = null; |