From 3971522a79ad01d61ca1957872a3840bcb052f7a Mon Sep 17 00:00:00 2001 From: Nicolas Chevobbe Date: Tue, 28 Sep 2021 10:13:58 +0000 Subject: [PATCH] Bug 1732627 - Remove usage of Promise.jsm in toolbox-hosts.js. r=bomsy. Differential Revision: https://phabricator.services.mozilla.com/D126662 --- devtools/client/framework/toolbox-hosts.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/devtools/client/framework/toolbox-hosts.js b/devtools/client/framework/toolbox-hosts.js index 19098d7fe3ec..200d1af4ed13 100644 --- a/devtools/client/framework/toolbox-hosts.js +++ b/devtools/client/framework/toolbox-hosts.js @@ -5,7 +5,6 @@ "use strict"; const EventEmitter = require("devtools/shared/event-emitter"); -const promise = require("promise"); const Services = require("Services"); loader.lazyRequireGetter( @@ -114,7 +113,7 @@ BottomHost.prototype = { this._splitter = null; } - return promise.resolve(null); + return Promise.resolve(null); }, }; @@ -196,7 +195,7 @@ class SidebarHost { this._browserPanel.removeChild(this.frame); } - return promise.resolve(null); + return Promise.resolve(null); } } @@ -329,7 +328,7 @@ WindowHost.prototype = { this._window.close(); } - return promise.resolve(null); + return Promise.resolve(null); }, }; @@ -371,7 +370,7 @@ BrowserToolboxHost.prototype = { // Do nothing. The BrowserToolbox is destroyed by quitting the application. destroy: function() { - return promise.resolve(null); + return Promise.resolve(null); }, }; @@ -389,7 +388,7 @@ PageHost.prototype = { type: "page", create: function() { - return promise.resolve(this.frame); + return Promise.resolve(this.frame); }, // Do nothing. @@ -400,7 +399,7 @@ PageHost.prototype = { // Do nothing. destroy: function() { - return promise.resolve(null); + return Promise.resolve(null); }, };