Bug 1777486 - Part 4: Migrate XPCOMUtils.jsm consumers with CommonJS require. r=devtools-reviewers,ochameau

Differential Revision: https://phabricator.services.mozilla.com/D151216
This commit is contained in:
Tooru Fujisawa 2022-07-12 04:21:35 +00:00
parent b6bce4ef39
commit 6907e51f5c
7 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
const Services = require("Services");
const { Ci, Cc, CC } = require("chrome");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
XPCOMUtils.defineLazyGetter(this, "ZipWriter", function() {
return CC("@mozilla.org/zipwriter;1", "nsIZipWriter");

View File

@ -14,7 +14,7 @@ const ITEM_FLASH_DURATION = 300; // ms
const { require } = ChromeUtils.import(
"resource://devtools/shared/loader/Loader.jsm"
);
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
const EventEmitter = require("devtools/shared/event-emitter");
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
const Services = require("Services");

View File

@ -5,7 +5,7 @@
"use strict";
var Services = require("Services");
var { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
var { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
var EventEmitter = require("devtools/shared/event-emitter");
var {

View File

@ -16,7 +16,7 @@
const { Ci } = require("chrome");
const { DevToolsServer } = require("devtools/server/devtools-server");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
const protocol = require("devtools/shared/protocol");
const {
workerDescriptorSpec,

View File

@ -5,7 +5,7 @@
"use strict";
const { Ci } = require("chrome");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
loader.lazyRequireGetter(
this,
"ServiceWorkerRegistrationActor",

View File

@ -6,7 +6,7 @@
const ChromeUtils = require("ChromeUtils");
const Services = require("Services");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
const protocol = require("devtools/shared/protocol");
const {
serviceWorkerRegistrationSpec,

View File

@ -5,7 +5,7 @@
"use strict";
const { Ci } = require("chrome");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.sys.mjs");
loader.lazyRequireGetter(
this,
"WorkerDescriptorActor",