mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
b6bce4ef39
commit
6907e51f5c
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user