Commit ebdf2506 authored by Karandeep's avatar Karandeep
Browse files

Bug 1829616 - Convert consumers of dom/notification to import ES modules...

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
parent d3a976d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −1
Original line number Diff line number Diff line
@@ -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, [