BrowserWorks / Waterfox-Classic

The Waterfox Classic repository, for legacy systems and customisation.
https://classic.waterfox.net
Mozilla Public License 2.0
175 stars 34 forks source link

AddonManager returns empty objects for addons #189

Open ThosRTanner opened 1 year ago

ThosRTanner commented 1 year ago

Describe the bug AddonManager getAddonByID and getAllAddons return empty objects, rather than information about the addon (at least for extensions. Plugins seem to work fine).

To Reproduce Steps to reproduce the behavior:

  1. Go to browser console
  2. Cu.import("resource://gre/modules/AddonManager.jsm")
  3. AddonManager.getAllAddons(addons => {for (const addon of addons) {console.log(addon);for (const key of Object.keys(addon)) { console.log(key + " -> " + addon[key])}}})
  4. See loads and loads of empty objects (I only have one addon installed...) and one for the default plugin that gets installed

Expected behavior I'd expect things like the addon id, name, version, etc to be supplied for the (one) addon I have installed....

Desktop (please complete the following information):