Bug 1502812 follow-up - Fix a basic error in logic; rs=me DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 02 Jul 2019 20:05:38 +1200
changeset 36012 d530d815c2968fdd3003569226a3aaae5916e9c0
parent 36011 9d7a0c93a3b1aaf72df2acabe83215fcf82fe0ab
child 36013 18730409abca6aef027355fdceb339c6feb35920
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersme
bugs1502812
Bug 1502812 follow-up - Fix a basic error in logic; rs=me DONTBUILD
mail/base/modules/ExtensionsUI.jsm
--- a/mail/base/modules/ExtensionsUI.jsm
+++ b/mail/base/modules/ExtensionsUI.jsm
@@ -662,17 +662,17 @@ var gXPInstallObserver = {
     await data.loadManifest();
 
     if (!data.manifest.legacy) {
       return false;
     }
 
     switch (typeof data.manifest.legacy) {
       case "boolean":
-        return data.manifest.legacy === "true";
+        return data.manifest.legacy;
       case "object":
         return !(data.manifest.legacy.type && data.manifest.legacy.type == "bootstrap");
       default:
         return false;
     }
   },
 
   async _checkForSideloaded(browser) {