Open Bug 1644355 Opened 4 years ago Updated 4 years ago

RootActor::listAddons returns Descriptors for non-debuggable addons

Categories

(DevTools :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

Details

Currently, the RootActor method listAddons will return an array of WebExtension descriptors that can contain non-webextension (and non-debuggable) addons. Trying to call getTarget for such descriptor will lead to an error.

The only client consumer of listAddons is about:debugging. And we currently filter out non-debuggable descriptors directly in about:debugging at https://searchfox.org/mozilla-central/rev/35b97af64a55d1d30caa4d6e9fabc1a7fbabc509/devtools/client/aboutdebugging/src/actions/debug-targets.js#240

If we filtered out non-debuggable extensions directly on the server (probably in webbrowser.js AddonList), we could:

  • stop filtering in about:debugging
  • remove the exception in WebExtensionDescriptor getTarget
You need to log in before you can comment on or make changes to this bug.