browser toolbox should also include devtools webextensions
Categories
(DevTools :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: clarkbw, Unassigned)
References
(Blocks 1 open bug)
Details
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Also added to the backlog for prioritization.
Sounds like this can happen on an opt-in basis; given that browser-toolbox is for an advanced audience this is reasonable decision to put on those users.
Luca, how does this look like 2 years after your last comment?
Comment 5•6 years ago
|
||
Luca, how does this look like 2 years after your last comment?
Most of what described in my last comment (comment 2) is still true, the only thing that changed in the meantime is related to WebExtensions debugging:
- as part of Bug 1525533, the "new about:debugging" page is going to connect the debugger to local add-ons without using the Browser Toolbox
and this should make it slightly simpler to allow, on a opt-in basis, a devtools extension to be used to inspect another extension page, because in the toolbox will be running in the same profile where the devtools WebExtensions is installed,
but the target extension page should be opened in a Firefox tab (mainly because, as described in comment 2, the existing devtools extensions are usually injecting a content script in the target page and exchanging messages between the devtools panel and the content script, and so if the target is in the tab it will be easier to make the devtools extension able to work unmodified on these "opt-in" targets).
For the "browser toolbox" scenario, every one of the problems described in my last comment are still true, in particular:
-
the browser toolbox runs in a separate process and Firefox profile:
how we decide which extensions to install and enable in the "browser toolbox process" profile?
How are these extension disabled/uninstalled and upgraded in the "browser toolbox process" profile? -
the target of a browser toolbox is going to always be remote:
how do we allow the devtools extension installed in the browser toolbox profile to inject a script in a remote target?
how do we allow the script injected in the remote target to exchange messages with the devtools extension running in the browser toolbox process?
(the extensions devtools panel are currently using the extension messaging APIs and the tabId to direct its messages
to the content script running in the target tab)
A slightly easier way to make it possible to inspect part of the devtools toolbox with a devtools extension may be the following:
- allow a devtool extension, on an opt-in basis (and maybe only on non-release channels), to attach a content script to tabs pointed on the url used to open the entire devtools toolbox in the tab (which should be "about:devtools-toolbox" if I recall correctly).
Would be this last strategy enough to cover the needs briefly described by Mike in Bug 1535578 comment 0?
Updated•5 years ago
|
Updated•2 years ago
|
Description
•