mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
d3a976d667
commit
ebdf250671
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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, [
|
||||
|
Loading…
Reference in New Issue
Block a user