Migrate ConsoleCommand.evaluateJSAsync and WebConsoleFront.evaluateJSAsync to a command
Categories
(DevTools :: Console, task)
Tracking
(firefox91 fixed)
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: ochameau, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
ConsoleCommands should be replaced by a generic command, hosted in devtools/shared/commands.
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/commands.js#17
This would make it easier to use from any place in DevTools frontend and avoid having this console-specific ConsoleCommands module.
While we are at it, we can probably merge it with the front's evaluateJSAsync method:
https://searchfox.org/mozilla-central/source/devtools/client/fronts/webconsole.js#99
and so also move WebConsoleFront.evaluateJSAsync to the command, so that the front is no longer having any custom implementation for this method.
(Long term, fronts should no longer have any custom class)
Assignee | ||
Comment 1•4 years ago
|
||
This method is meant to replace the direct usage
of webconsoleFront.evaluateJSAsync.
The WebConsoleCommands file is removed, and all
client calls to evaluateJSAsync are migrated to
the new method. Callsites are simplified when
possible, and some test are refactored to switch
to spawned task to retrieve content page information.
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D116242
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ac9ae179ece1
https://hg.mozilla.org/mozilla-central/rev/a130967c1393
Description
•