mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1566850 - Remove target.activeConsole usage in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56686 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
dc772fcaf3
commit
1df3816fb1
@ -182,9 +182,8 @@ DomPanel.prototype = {
|
||||
getRootGrip: async function() {
|
||||
// Attach Console. It might involve RDP communication, so wait
|
||||
// asynchronously for the result
|
||||
const { result } = await this.target.activeConsole.evaluateJSAsync(
|
||||
"window"
|
||||
);
|
||||
const consoleFront = await this.target.getFront("console");
|
||||
const { result } = await consoleFront.evaluateJSAsync("window");
|
||||
return result;
|
||||
},
|
||||
|
||||
|
@ -188,8 +188,9 @@ function expandRow(panel, labelText) {
|
||||
});
|
||||
}
|
||||
|
||||
function evaluateJSAsync(panel, expression) {
|
||||
return panel.target.activeConsole.evaluateJSAsync(expression);
|
||||
async function evaluateJSAsync(panel, expression) {
|
||||
const consoleFront = await panel.target.getFront("console");
|
||||
return consoleFront.evaluateJSAsync(expression);
|
||||
}
|
||||
|
||||
function refreshPanel(panel) {
|
||||
|
Loading…
Reference in New Issue
Block a user