Closed
Bug 1070856
Opened 10 years ago
Closed 3 years ago
No way for an add-on to define a developer tool for use in the Browser Toolbox
Categories
(DevTools :: Framework, defect)
DevTools
Framework
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: Unfocused, Unassigned)
References
(Blocks 1 open bug)
Details
Add-ons can implement new developer tools that integrate into the normal devtools toolbox. However, AFAICT there's no way to get these loaded into the Browser Toolbox. Which is a shame, because that's exactly what I want to do.
Comment 1•10 years ago
|
||
The API does not treat addons differently. If an addon has registered a tool, based on the output of isTargetSupported method, the tool will be shown or hidden from various different target types. See the currently registered default tools for some idea [0] . See line 339, which is for the Storage Inspector which hides itself from Browser Toolbox only allowing local tabs.
How is your add-on registering the developer tool ?
[0] http://dxr.mozilla.org/mozilla-central/source/browser/devtools/main.js
Reporter | ||
Comment 2•10 years ago
|
||
Well, yes, this is true. But since this is an add-on and the Browser Toolbox has it's own separate profile, the add-on is never loaded, right?
Comment 3•10 years ago
|
||
Well, true. Unless the addon is added manually to that profile.
Comment 4•10 years ago
|
||
Maybe we could copy the existing add-ons over to the Browser Toolbox profile on creation, like we do for prefs.js:
http://dxr.mozilla.org/mozilla-central/source/browser/devtools/framework/ToolboxProcess.jsm#154
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•3 years ago
|
Blocks: browser-toolbox
Comment 5•3 years ago
|
||
There is now WebExtension concept with relatively strict set of APIs (no API for extendig Browser Toolboxes).
Closing
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•