зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1569569 - Stop returning self from WebConsole.init. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D40019 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
93784dd2f7
Коммит
a733068fb4
|
@ -80,10 +80,11 @@ HUDService.prototype = {
|
|||
* @return object
|
||||
* A promise object for the opening of the new WebConsole instance.
|
||||
*/
|
||||
openWebConsole(target, iframeWindow, chromeWindow) {
|
||||
async openWebConsole(target, iframeWindow, chromeWindow) {
|
||||
const hud = new WebConsole(target, iframeWindow, chromeWindow, this);
|
||||
this.consoles.set(hud.hudId, hud);
|
||||
return hud.init();
|
||||
await hud.init();
|
||||
return hud;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -99,11 +100,12 @@ HUDService.prototype = {
|
|||
* @return object
|
||||
* A promise object for the opening of the new BrowserConsole instance.
|
||||
*/
|
||||
openBrowserConsole(target, win, fissionSupport = false) {
|
||||
async openBrowserConsole(target, win, fissionSupport = false) {
|
||||
const hud = new BrowserConsole(target, win, win, this, fissionSupport);
|
||||
this._browserConsoleID = hud.hudId;
|
||||
this.consoles.set(hud.hudId, hud);
|
||||
return hud.init();
|
||||
await hud.init();
|
||||
return hud;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -111,7 +111,7 @@ class WebConsole {
|
|||
* A promise for the initialization.
|
||||
*/
|
||||
init() {
|
||||
return this.ui.init().then(() => this);
|
||||
return this.ui.init();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче