Closed Bug 1601630 Opened 6 years ago Closed 6 years ago

Remove WebConsoleUI evaluateJSAsync

Categories

(DevTools :: Console, task, P1)

task

Tracking

(firefox73 fixed)

RESOLVED FIXED
Firefox 73
Tracking Status
firefox73 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m1)

Attachments

(1 file)

This function (devtools/client/webconsole/webconsole-ui.js#497-504 ) directly calls the main target WebConsoleFront evaluateJSAsync method, which means it does not benefit from the work we did in the commands evaluateJSAsync to retrieve the correct webConsoleFront to talk to.

There are only a couple of consumers:

  • inspector's "Use in console" context menu entry
  • a console mochitest

so it should be easy to migrate, and call the command method instead.

This method was directly using the main target console front
to evaluate something, which could cause issue in a fission
world.
The function is removed, and callsites now call the command
evaluateJSAsync, in which we retrieve the appropriate front
given the given options object (e.g. if there's a selecteObjectActor,
we'll talk to the target that hold the actor).

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/deda1cad1f65 Remove WebConsoleUI evaluateJSAsync. r=jlast.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
Whiteboard: dt-fission → dt-fission dt-fission-m1
Whiteboard: dt-fission dt-fission-m1 → dt-fission-m1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: