Bug 592785 - Don't report add-ons as incompatible if they are already incompatible with the current version. r=dtownsend, a=approval2.0 dtownsend

This commit is contained in:
Robert Strong 2010-09-01 16:26:30 -07:00
parent 1ee9ad0500
commit 70e1a689c2
2 changed files with 2 additions and 0 deletions

View File

@ -524,6 +524,7 @@ var gUpdates = {
if (addon.type != "plugin" &&
!addon.appDisabled && !addon.userDisabled &&
addon.scope != AddonManager.SCOPE_APPLICATION &&
addon.isCompatible &&
!addon.isCompatibleWith(self.update.appVersion,
self.update.platformVersion))
self.addons.push(addon);

View File

@ -1456,6 +1456,7 @@ UpdateService.prototype = {
if (addon.type != "plugin" &&
!addon.appDisabled && !addon.userDisabled &&
addon.scope != AddonManager.SCOPE_APPLICATION &&
addon.isCompatible &&
!addon.isCompatibleWith(self._update.appVersion,
self._update.platformVersion))
self._incompatibleAddons.push(addon);