mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
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:
parent
186d63f202
commit
50b1cf9604
@ -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":
|
@ -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",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user