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 * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["AboutTabCrashedChild"];
const { RemotePageChild } = ChromeUtils.import( const { RemotePageChild } = ChromeUtils.import(
"resource://gre/actors/RemotePageChild.jsm" "resource://gre/actors/RemotePageChild.jsm"
); );
class AboutTabCrashedChild extends RemotePageChild {} export class AboutTabCrashedChild extends RemotePageChild {}

View file

@ -4,11 +4,8 @@
"use strict"; "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 = {}; const lazy = {};
XPCOMUtils.defineLazyModuleGetters(lazy, { XPCOMUtils.defineLazyModuleGetters(lazy, {
SessionStore: "resource:///modules/sessionstore/SessionStore.jsm", SessionStore: "resource:///modules/sessionstore/SessionStore.jsm",
@ -18,7 +15,7 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
// A list of all of the open about:tabcrashed pages. // A list of all of the open about:tabcrashed pages.
let gAboutTabCrashedPages = new Map(); let gAboutTabCrashedPages = new Map();
class AboutTabCrashedParent extends JSWindowActorParent { export class AboutTabCrashedParent extends JSWindowActorParent {
didDestroy() { didDestroy() {
this.removeCrashedPage(); this.removeCrashedPage();
} }

View file

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

View file

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