Open Bug 1791059 Opened 2 years ago Updated 9 months ago

Always instantiate DevTools Toolbox from its url and query params

Categories

(DevTools :: Framework, task)

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.

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.

Component: General → Framework
You need to log in before you can comment on or make changes to this bug.