Bug 602846 - "no feedback when extension isn't compatible due to em:targetPlatform" [r=mark.finkle]

This commit is contained in:
Wesley Johnston 2010-10-11 16:10:00 -04:00
parent 1f01c9107d
commit 5bd7ae29f6

View File

@ -854,7 +854,7 @@ AddonInstallListener.prototype = {
error += aInstall.error;
else if (aInstall.addon.blocklistState == Ci.nsIBlocklistService.STATE_BLOCKED)
error += "Blocklisted";
else if (!aInstall.addon.isCompatible)
else if (!aInstall.addon.isCompatible || !aInstall.addon.isPlatformCompatible)
error += "Incompatible";
else
return; // no need to show anything in this case