Bug 608138 - Exclude plugins from the compatibility wizard checks. r=dtownsend, a=b7
authorRobert Strong <robert.bugzilla@gmail.com>
Fri, 29 Oct 2010 12:04:52 -0700
changeset 56690 1263cf174245d6d233a1f04069501f722486625c
parent 56689 7026084ea102f78a12f589c15a958bd438b16438
child 56691 87e6cf44d4066ab1a0e581314448a4c40da70355
push idunknown
push userunknown
push dateunknown
reviewersdtownsend, b7
bugs608138
milestone2.0b8pre
Bug 608138 - Exclude plugins from the compatibility wizard checks. r=dtownsend, a=b7
toolkit/mozapps/extensions/content/update.js
--- a/toolkit/mozapps/extensions/content/update.js
+++ b/toolkit/mozapps/extensions/content/update.js
@@ -153,21 +153,23 @@ var gVersionInfoPage = {
   onPageShow: function ()
   {
     gUpdateWizard.setButtonLabels(null, true,
                                   "nextButtonText", true,
                                   "cancelButtonText", false);
 
     // Retrieve all add-ons in order to sync their app compatibility information
     AddonManager.getAllAddons(function(aAddons) {
-      gUpdateWizard.addons = aAddons;
+      gUpdateWizard.addons = aAddons.filter(function(a) {
+        return a.type != "plugin";
+      });
 
-      gVersionInfoPage._totalCount = aAddons.length;
+      gVersionInfoPage._totalCount = gUpdateWizard.addons.length;
 
-      aAddons.forEach(function(aAddon) {
+      gUpdateWizard.addons.forEach(function(aAddon) {
         aAddon.findUpdates(gVersionInfoPage, AddonManager.UPDATE_WHEN_NEW_APP_INSTALLED);
       }, this);
     });
   },
 
   onAllUpdatesFinished: function() {
     // Filter out any add-ons that were disabled before the application was
     // upgraded or are already compatible