Bug 1777486 - Part 0: Use AppConstants.jsm in Cu.getGlobalForObject consumer. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D151337
This commit is contained in:
Tooru Fujisawa 2022-07-11 15:09:12 +00:00
parent 1079972361
commit fe1f9b330b
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* globals ProcessHangMonitor */
const { WebExtensionPolicy } = Cu.getGlobalForObject(
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm")
ChromeUtils.import("resource://gre/modules/AppConstants.jsm")
);
const { UpdateUtils } = ChromeUtils.import(

View File

@ -10,7 +10,7 @@ const { dumpn } = require("devtools/shared/DevToolsUtils");
function createTCPSocket(location, port, options) {
const { TCPSocket } = Cu.getGlobalForObject(
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm")
ChromeUtils.import("resource://gre/modules/AppConstants.jsm")
);
return new TCPSocket(location, port, options);

View File

@ -6,7 +6,7 @@ const ConsoleAPIStorage = Cc["@mozilla.org/consoleAPI-storage;1"].getService(
);
const { WebExtensionPolicy } = Cu.getGlobalForObject(
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm")
ChromeUtils.import("resource://gre/modules/AppConstants.jsm")
);
const FAKE_ADDON_ID = "test-webext-addon@mozilla.org";