ad13e9e
--- mozilla/toolkit/mozapps/extensions/internal/XPIInstall.jsm.orig	2022-06-08 22:10:29.000000000 +0300
ad13e9e
+++ mozilla/toolkit/mozapps/extensions/internal/XPIInstall.jsm	2022-06-15 21:14:29.984281233 +0300
ad13e9e
@@ -691,17 +691,17 @@ async function loadManifestFromRDF(aUri,
ad13e9e
 
ad13e9e
   // A theme's userDisabled value is true if the theme is not the selected skin
ad13e9e
   // or if there is an active lightweight theme. We ignore whether softblocking
ad13e9e
   // is in effect since it would change the active theme.
ad13e9e
   if (isTheme(addon.type)) {
ad13e9e
     addon.userDisabled = !!LightweightThemeManager.currentTheme ||
ad13e9e
                          addon.internalName != XPIProvider.selectedSkin;
ad13e9e
   } else {
ad13e9e
-    addon.userDisabled = false;
ad13e9e
+    addon.userDisabled = getRDFProperty(ds, root, "userDisabled") == "true";
ad13e9e
   }
ad13e9e
 
ad13e9e
   addon.softDisabled = addon.blocklistState == nsIBlocklistService.STATE_SOFTBLOCKED;
ad13e9e
   addon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DEFAULT;
ad13e9e
 
ad13e9e
   // icons will be filled by the calling function
ad13e9e
   addon.icons = {};
ad13e9e
   addon.userPermissions = null;