зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1079972361
Коммит
fe1f9b330b
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче