Bug 1788931 - Convert browser/actors/BrowserProcessChild.jsm JSM module to ESM. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D157058
This commit is contained in:
Alvin Lew 2022-09-12 16:41:52 +00:00
parent 186d63f202
commit 50b1cf9604
3 changed files with 3 additions and 5 deletions

View File

@ -4,8 +4,6 @@
"use strict";
var EXPORTED_SYMBOLS = ["BrowserProcessChild"];
const lazy = {};
ChromeUtils.defineModuleGetter(
@ -20,7 +18,7 @@ ChromeUtils.defineModuleGetter(
"resource:///modules/AboutNewTabService.jsm"
);
class BrowserProcessChild extends JSProcessActorChild {
export class BrowserProcessChild extends JSProcessActorChild {
receiveMessage(message) {
switch (message.name) {
case "AboutHomeStartupCache:InputStreams":

View File

@ -48,7 +48,7 @@ FINAL_TARGET_FILES.actors += [
"AboutTabCrashedParent.sys.mjs",
"BlockedSiteChild.jsm",
"BlockedSiteParent.jsm",
"BrowserProcessChild.jsm",
"BrowserProcessChild.sys.mjs",
"BrowserTabChild.jsm",
"BrowserTabParent.jsm",
"ClickHandlerChild.jsm",

View File

@ -165,7 +165,7 @@ let JSPROCESSACTORS = {
// Miscellaneous stuff that needs to be initialized per process.
BrowserProcess: {
child: {
moduleURI: "resource:///actors/BrowserProcessChild.jsm",
esModuleURI: "resource:///actors/BrowserProcessChild.sys.mjs",
observers: [
// WebRTC related notifications. They are here to avoid loading WebRTC
// components when not needed.