mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
1079972361
commit
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";
|
||||
|
Loading…
Reference in New Issue
Block a user