Closed Bug 1569569 Opened 5 years ago Closed 5 years ago

Refactor HUDService to make it specific to the browser console

Categories

(DevTools :: Console, task, P3)

task

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

HUDService is mostly being used for the Browser Console.
Outside of the browser console usecase, it is only used by WebConsolePanel in order to instanciate the WebConsole object.
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/panel.js#71
Which later forces us to manually remove the WebConsole reference from HUDService internal map over here:
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/webconsole.js#381

We don't need this Map:
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/hudservice.js#37
Instead, HUDService could be focused on managing the WebConsole singleton used for the Browser console. And WebConsolePanel would self-manage its WebConsole object.

When doing this, the architecture diagram in console-panel.md should be updated

Priority: -- → P3

Are you currently working on this Alex? You're assigned to it but the Status is NEW. if you're not, I'll take it.

Flags: needinfo?(poirot.alex)

Yes, didn't I submitted the patch for review?!

Flags: needinfo?(poirot.alex)

Sorry about that, I forgot to ask for submit the patches to phabricator. I rebased the patches against latest m-c.
And a new try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3e4c0b8dd82b760cb2fe0aeb432e7b550d5dbb70

Status: NEW → ASSIGNED
Type: enhancement → task
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5ddb38c03e4e
Stop returning self from WebConsole.init. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/82d6d3db3918
Instantiates WebConsole directly from WebConsolePanel. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/3d68ad734f21
Make HUDService specific to the browser console. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: