Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Extension check UI fetches add-on update info twice




Add-ons Manager
4 years ago
2 years ago


(Reporter: Irving, Unassigned)



Firefox Tracking Flags

(Not tracked)


In the UI that checks for add-on updates when Fx is upgraded to a new version, we call addon.findUpdates twice for add-ons to be updated; once at for every add-on, and again at for those that we decide need to be updated. Since this call involves a network request, we should do it at most once per add-on.
I suspect this crept in during the change from old to new API in bug 557956, where the old em.update(... nsIExtensionManager.UPDATE_SYNC_COMPATIBILITY...) was changed to forall(addons) addon.findUpdates() at, and then later changes added back the compatibility sync via AddonRepository.repopulateCache() but kept the ...findUpdates().
No, we always used to do the update check twice because IIRC the old API could only return compatibility or update information not both. We were just in such a rush to get Firefox 4 done that we didn't fix this up tthen.
Keywords: perf
You need to log in before you can comment on or make changes to this bug.