Bug 1788927 - Convert browser/actors/AboutTabCrashed* JSM modules to ESMs. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D157042
This commit is contained in:
achris16 2022-09-10 21:58:40 +00:00
parent 5e497def60
commit 3cc2343b5d
4 changed files with 7 additions and 13 deletions

View file

@ -3,10 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["AboutTabCrashedChild"];
const { RemotePageChild } = ChromeUtils.import(
"resource://gre/actors/RemotePageChild.jsm"
);
class AboutTabCrashedChild extends RemotePageChild {}
export class AboutTabCrashedChild extends RemotePageChild {}

View file

@ -4,11 +4,8 @@
"use strict";
var EXPORTED_SYMBOLS = ["AboutTabCrashedParent"];
import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";
const { XPCOMUtils } = ChromeUtils.importESModule(
"resource://gre/modules/XPCOMUtils.sys.mjs"
);
const lazy = {};
XPCOMUtils.defineLazyModuleGetters(lazy, {
SessionStore: "resource:///modules/sessionstore/SessionStore.jsm",
@ -18,7 +15,7 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
// A list of all of the open about:tabcrashed pages.
let gAboutTabCrashedPages = new Map();
class AboutTabCrashedParent extends JSWindowActorParent {
export class AboutTabCrashedParent extends JSWindowActorParent {
didDestroy() {
this.removeCrashedPage();
}

View file

@ -44,8 +44,8 @@ FINAL_TARGET_FILES.actors += [
"AboutProtectionsParent.jsm",
"AboutReaderChild.jsm",
"AboutReaderParent.jsm",
"AboutTabCrashedChild.jsm",
"AboutTabCrashedParent.jsm",
"AboutTabCrashedChild.sys.mjs",
"AboutTabCrashedParent.sys.mjs",
"BlockedSiteChild.jsm",
"BlockedSiteParent.jsm",
"BrowserProcessChild.jsm",

View file

@ -352,11 +352,10 @@ let JSWINDOWACTORS = {
AboutTabCrashed: {
parent: {
moduleURI: "resource:///actors/AboutTabCrashedParent.jsm",
esModuleURI: "resource:///actors/AboutTabCrashedParent.sys.mjs",
},
child: {
moduleURI: "resource:///actors/AboutTabCrashedChild.jsm",
esModuleURI: "resource:///actors/AboutTabCrashedChild.sys.mjs",
events: {
DOMDocElementInserted: { capture: true },
},