Always instantiate DevTools Toolbox from its url and query params
Categories
(DevTools :: Framework, task)
Tracking
(Not tracked)
People
(Reporter: ochameau, Unassigned)
References
(Blocks 1 open bug)
Details
Today we have two quite distinct initialization codepath for the Toolbox.
-
The legacy one, used for regular devtools opened next to a web page.
We instantiate the commands/descriptor via TabDescriptorFactory, and gDevTools and ToolboxHostManager and handing over the descriptor directly to the Toolbox instance.
This codepath is an issue for running DevTools in another process as gDevTools is meant to stay in the parent process, while the Toolbox will be in another process. -
The new one, used by about:debugging toolboxes.
Here the commands/descriptor is instantiated via toolbox-init.js/descriptorFromURL directly from the toolbox document (i.e. about:devtools-toolbox). It instantiates the right descriptor based on query parameters which helps to select the right context to debug.
It would be nice to converge to the new codepath in order to help start the toolbox in another process.
Bug 1791055 may be helpful in fulfilling this quest.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Description
•