Bug 1829616 - Convert consumers of dom/notification to import ES modules directly. r=Standard8,geckoview-reviewers,m_kato

Depends on D178836

Differential Revision: https://phabricator.services.mozilla.com/D178837
This commit is contained in:
Karandeep 2023-05-26 08:28:47 +00:00
parent d3a976d667
commit ebdf250671
3 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@ var { XPCOMUtils } = ChromeUtils.importESModule(
var { AppConstants } = ChromeUtils.importESModule(
"resource://gre/modules/AppConstants.sys.mjs"
);
ChromeUtils.import("resource://gre/modules/NotificationDB.jsm");
ChromeUtils.importESModule("resource://gre/modules/NotificationDB.sys.mjs");
// lazy module getters

View File

@ -31,7 +31,7 @@ var calendarNotification = getNotificationObject(
// Helper to start the NotificationDB
function startNotificationDB() {
ChromeUtils.import("resource://gre/modules/NotificationDB.jsm");
ChromeUtils.importESModule("resource://gre/modules/NotificationDB.sys.mjs");
}
// Helper function to add a listener, send message and treat the reply

View File

@ -246,7 +246,9 @@ class GeckoViewStartup {
ged: ["GeckoView:WebExtension:DownloadChanged"],
});
ChromeUtils.import("resource://gre/modules/NotificationDB.jsm");
ChromeUtils.importESModule(
"resource://gre/modules/NotificationDB.sys.mjs"
);
// Listen for global EventDispatcher messages
lazy.EventDispatcher.instance.registerListener(this, [