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:
Alexandre Poirot 2019-07-31 21:56:45 +00:00
Родитель 93784dd2f7
Коммит a733068fb4
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -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();
}
/**