Closed Bug 1766237 Opened 2 years ago Closed 2 years ago

Show the Add-on name instead of the UUID

Categories

(DevTools :: Debugger, task, P3)

task

Tracking

(firefox102 fixed)

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: bomsy, Assigned: bomsy)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

To support the usage of the browser toolbox by add-ons developers, we should show web-extensions add-on names (rather than the internal UUID's) in the debugger sources tree as we are doing for the extensions visible in devtools toolbox.
This make it easier to identify the addons without having to check the names in the addon settings or the about:debugging tab

The issue here is it seems like WebExtensionPolicy is not always available on the Cu global,
therefore failing when trying to get the extension policy name.
in this example when adding sources from the browser toolbox (i'm still not completely sure why)

The solution here is changing to using the ExtensionProcessScript which works for the web and browser
toolbox.
Also added a console.warn so we get some notification when this fails.

Assignee: nobody → hmanilla
Attachment #9273985 - Attachment description: Bug 1766237 - [devtools] Get the WebExtensionPolicy from the ExtensionProcessScript global → Bug 1766237 - [devtools] Get the WebExtensionPolicy from the ExtensionProcessScript global r=jdescottes
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/597785337a95
[devtools] Get the WebExtensionPolicy from the ExtensionProcessScript global r=jdescottes,rpl,ochameau
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Regressions: 1771659
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: