Commit 9562a5e4 authored by Mark Banner's avatar Mark Banner
Browse files

Bug 1780017 - Migrate browser/components/urlbar to ESM. r=adw

parent 2aa3c4e4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@

"use strict";

var EXPORTED_SYMBOLS = ["QuickActionsLoaderDefault"];

const { XPCOMUtils } = ChromeUtils.importESModule(
  "resource://gre/modules/XPCOMUtils.sys.mjs"
);
@@ -147,7 +145,7 @@ function restartBrowser() {
/**
 * Loads the default QuickActions.
 */
class QuickActionsLoaderDefault {
export class QuickActionsLoaderDefault {
  static load() {
    for (const key in DEFAULT_ACTIONS) {
      lazy.UrlbarProviderQuickActions.addAction(key, DEFAULT_ACTIONS[key]);
+1 −3
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@

"use strict";

var EXPORTED_SYMBOLS = ["UrlbarController"];

const { XPCOMUtils } = ChromeUtils.importESModule(
  "resource://gre/modules/XPCOMUtils.sys.mjs"
);
@@ -58,7 +56,7 @@ const NOTIFICATIONS = {
 * - onViewOpen()
 * - onViewClose()
 */
class UrlbarController {
export class UrlbarController {
  /**
   * Initialises the class. The manager may be overridden here, this is for
   * test purposes.
+1 −3
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@

"use strict";

var EXPORTED_SYMBOLS = ["UrlbarEventBufferer"];

const { XPCOMUtils } = ChromeUtils.importESModule(
  "resource://gre/modules/XPCOMUtils.sys.mjs"
);
@@ -55,7 +53,7 @@ const QUERY_STATUS = {
 * To prevent that undesirable behavior, certain keys are buffered and deferred
 * until more results arrive, at which time they're replayed.
 */
class UrlbarEventBufferer {
export class UrlbarEventBufferer {
  /**
   * Initialises the class.
   * @param {UrlbarInput} input The urlbar input object.
+1 −3
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@

"use strict";

var EXPORTED_SYMBOLS = ["UrlbarInput"];

const { XPCOMUtils } = ChromeUtils.importESModule(
  "resource://gre/modules/XPCOMUtils.sys.mjs"
);
@@ -64,7 +62,7 @@ let px = number => number.toFixed(2) + "px";
/**
 * Implements the text input part of the address bar UI.
 */
class UrlbarInput {
export class UrlbarInput {
  /**
   * @param {object} options
   *   The initial options for UrlbarInput.
+1 −3
Original line number Diff line number Diff line
@@ -8,8 +8,6 @@
 * This module exports a component used to sort results in a UrlbarQueryContext.
 */

var EXPORTED_SYMBOLS = ["UrlbarMuxerUnifiedComplete"];

const { XPCOMUtils } = ChromeUtils.importESModule(
  "resource://gre/modules/XPCOMUtils.sys.mjs"
);
@@ -1246,4 +1244,4 @@ class MuxerUnifiedComplete extends UrlbarMuxer {
  }
}

var UrlbarMuxerUnifiedComplete = new MuxerUnifiedComplete();
export var UrlbarMuxerUnifiedComplete = new MuxerUnifiedComplete();
Loading