Closed Bug 553517 Opened 14 years ago Closed 6 years ago

Add an API to get the number of installed addons by type

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Unfocused, Unassigned)

References

Details

(Whiteboard: [rewrite])

I'm wanting to know when there are no addons of a given type installed. However, I'd like to do this without needing to load all the (unneeded) metadata.
About which type do we talk in detail? Jetpacks vs. XPI?
There's no real concept of XPIs as a whole - there's restart-less addons (jetpacks will be this) that use the type "bootstrapped", and the various other types such as: extension, theme, language, searchengine, plugin. The last two, for instance, don't use XPIs.
For the time being I think just use getAddonsByTypes and count the results.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.