Closed Bug 1700909 Opened 5 years ago Closed 3 years ago

Pass `commands` instead of `descriptorFront` to Toolbox constructor

Categories

(DevTools :: Framework, task)

task

Tracking

(Fission Milestone:Future, firefox107 fixed)

RESOLVED FIXED
107 Branch
Fission Milestone Future
Tracking Status
firefox107 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 3 open bugs)

Details

Attachments

(5 files)

Now that commands own both DevToolsClient and Descriptor Front, this should be the one object instantiated by gDevTools and passed to the Toolbox.
Bug 1699200 refactored most of the places where we were instantiating a Descriptor Front, but we would need a dedicated work to convert gDevTools and the Toolbox codes.

Whiteboard: dt-fission-m3-triage
Fission Milestone: --- → M8
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Fission Milestone: M8 → Future
Whiteboard: dt-fission-m3-mvp
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Depends on: 1791055
Assignee: nchevobbe → poirot.alex

Instead we should we querying Toolbox.commands.descriptorFront.

Also move iKnownTab to gDevTools.hasToolboxForTab as it feel more natural.

Note that this depends on the following patch, in order to destroy commands from the toolbox.
Commands have always been destroying the related client. This was a significant simplification in test.
So that I had to reverse the default value of shouldCloseClient and only toggle it to false
where it is strictly needed. Ideally only for about:debugging toolboxes (and two tests).

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3dbeffe25878 [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/e53aaf8ffe5b [devtools] Migrate TabDescriptorFactory to LocalTabCommandsFactory. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/6f6fe066fc38 [devtools] Migrate descriptorFromURL to commandsFromURL. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/998c0ec4f9d3 [devtools] Migrate DescriptorMixin.shouldCloseClient to Commands. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/9bc3e4820f59 [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes
Blocks: 1792859
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c49eab385e1c [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/4e6312ea547a [devtools] Migrate TabDescriptorFactory to LocalTabCommandsFactory. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/67b12d0e350b [devtools] Migrate descriptorFromURL to commandsFromURL. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/5a6b15eb1e12 [devtools] Migrate DescriptorMixin.shouldCloseClient to Commands. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/a49f15f66ed4 [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes,extension-reviewers,willdurand

Backed out for causing mochitest failures

Blocks: 1794607
Flags: needinfo?(poirot.alex)
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e22436436df [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/07a670f05d5c [devtools] Migrate TabDescriptorFactory to LocalTabCommandsFactory. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/725d7c635e8c [devtools] Migrate descriptorFromURL to commandsFromURL. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/377777880120 [devtools] Migrate DescriptorMixin.shouldCloseClient to Commands. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/94859d04ddaf [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes,extension-reviewers,willdurand
Regressions: 1797730
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: