Bug 1601630 - Remove WebConsoleUI evaluateJSAsync. r=jlast.
This method was directly using the main target console front to evaluate something, which could cause issue in a fission world. The function is moved to the WebConsole class, and calls commands 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). Differential Revision: https://phabricator.services.mozilla.com/D55986
This commit is contained in:
@@ -371,7 +371,7 @@ class MarkupContextMenu {
|
||||
const options = {
|
||||
selectedNodeActor: this.selection.nodeFront.actorID,
|
||||
};
|
||||
const res = await hud.ui.evaluateJSAsync(evalString, options);
|
||||
const res = await hud.evaluateJSAsync(evalString, options);
|
||||
hud.setInputValue(res.result);
|
||||
this.inspector.emit("console-var-ready");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user