Check if we could merge WebConsole, WebConsoleUI and WebConsoleWrapper
Categories
(DevTools :: Console, task, P3)
Tracking
(Not tracked)
People
(Reporter: nchevobbe, Unassigned)
Details
Here's the current state of the webconsole panel hierarchy:
WebConsolePanel
has ahud
property, which is aWebConsole
instanceWebConsole
has aui
property which is aWebConsoleUI
instanceWebConsoleUI
has awrapper
property which is aWebConsoleWrapper
instanceWebConsoleWrapper
renders the React app
If seems like we could collapse WebConsole
, WebConsoleUI
and WebConsoleWrapper
, as it's unclear why each of these are separated.
This is probably a relic of ancient time when we transitioned to the new console frontend.
Everything could be under the WebConsole
(and the BrowserConsole
, which extends BrowserConsole
), making the code easier to follow.
This could also help clarify some of our interaction and methods, which are often only piping things to other instance methods.
Comment 1•6 years ago
|
||
Big +1! A side effect would be that we would no longer have "hud", which is very cryptic and doesn't help understanding that it is actually a reference to WebConsole/BrowserConsole!
If that's any helpful, we could start with merging just WebConsole/BrowserConsole and WebConsoleUI, so that at least, we no longer have this hud
thing.
Comment 2•4 years ago
|
||
Also to note while we fix this https://phabricator.services.mozilla.com/D99623#inline-570493
Updated•3 years ago
|
Description
•