Bug 1793275 - Convert chat actors to es modules. r=mkmelin

Differential Revision: https://phabricator.services.mozilla.com/D158449

Depends on D158448

--HG--
rename : mail/actors/ChatActionChild.jsm => mail/actors/ChatActionChild.sys.mjs
rename : mail/actors/ChatActionParent.jsm => mail/actors/ChatActionParent.sys.mjs
extra : histedit_source : e99c39b09353aa68fb7f80ce9fb49ce618560926
This commit is contained in:
Martin Giger 2022-10-01 12:27:46 +00:00
Родитель d3029d4c4b
Коммит 62234569fe
4 изменённых файлов: 6 добавлений и 14 удалений

Просмотреть файл

@ -4,11 +4,7 @@
* 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/. */
"use strict";
var EXPORTED_SYMBOLS = ["ChatActionChild"];
class ChatActionChild extends JSWindowActorChild {
export class ChatActionChild extends JSWindowActorChild {
constructor() {
super();

Просмотреть файл

@ -4,11 +4,7 @@
* 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/. */
"use strict";
var EXPORTED_SYMBOLS = ["ChatActionParent"];
class ChatActionParent extends JSWindowActorParent {
export class ChatActionParent extends JSWindowActorParent {
receiveMessage(message) {
if (message.name === "ChatAction:Actions") {
let browser = this.manager.rootFrameLoader.ownerElement;

Просмотреть файл

@ -10,8 +10,8 @@ EXTRA_JS_MODULES += [
FINAL_TARGET_FILES.actors += [
"../../../browser/actors/ContextMenuChild.jsm",
"../../../browser/actors/LinkHandlerChild.jsm",
"ChatActionChild.jsm",
"ChatActionParent.jsm",
"ChatActionChild.sys.mjs",
"ChatActionParent.sys.mjs",
"ContextMenuParent.jsm",
"LinkClickHandlerChild.jsm",
"LinkClickHandlerParent.jsm",

Просмотреть файл

@ -54,10 +54,10 @@ let JSWINDOWACTORS = {
ChatAction: {
matches: ["chrome://chat/content/conv.html"],
parent: {
moduleURI: "resource:///actors/ChatActionParent.jsm",
esModuleURI: "resource:///actors/ChatActionParent.sys.mjs",
},
child: {
moduleURI: "resource:///actors/ChatActionChild.jsm",
esModuleURI: "resource:///actors/ChatActionChild.sys.mjs",
events: {
contextmenu: { mozSystemGroup: true },
},