Bug 1790277 - Convert FromValidation JSM modules to ESMs. r=mconley.

Differential Revision: https://phabricator.services.mozilla.com/D157168
This commit is contained in:
Brian 2022-09-20 20:17:36 +00:00
Родитель 31ce2b0171
Коммит 5b24c562b9
4 изменённых файлов: 6 добавлений и 10 удалений

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

@ -8,13 +8,11 @@
* the display of the help panel on invalid elements.
*/
var EXPORTED_SYMBOLS = ["FormValidationChild"];
const { LayoutUtils } = ChromeUtils.import(
"resource://gre/modules/LayoutUtils.jsm"
);
class FormValidationChild extends JSWindowActorChild {
export class FormValidationChild extends JSWindowActorChild {
constructor() {
super();
this._validationMessage = "";

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

@ -8,8 +8,6 @@
"use strict";
var EXPORTED_SYMBOLS = ["FormValidationParent"];
const lazy = {};
ChromeUtils.defineModuleGetter(
@ -44,7 +42,7 @@ class PopupShownObserver {
]);
}
class FormValidationParent extends JSWindowActorParent {
export class FormValidationParent extends JSWindowActorParent {
constructor() {
super();

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

@ -63,8 +63,8 @@ FINAL_TARGET_FILES.actors += [
"DOMFullscreenParent.jsm",
"EncryptedMediaChild.jsm",
"EncryptedMediaParent.jsm",
"FormValidationChild.jsm",
"FormValidationParent.jsm",
"FormValidationChild.sys.mjs",
"FormValidationParent.sys.mjs",
"LightweightThemeChild.jsm",
"LinkHandlerChild.jsm",
"LinkHandlerParent.jsm",

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

@ -535,11 +535,11 @@ let JSWINDOWACTORS = {
FormValidation: {
parent: {
moduleURI: "resource:///actors/FormValidationParent.jsm",
esModuleURI: "resource:///actors/FormValidationParent.sys.mjs",
},
child: {
moduleURI: "resource:///actors/FormValidationChild.jsm",
esModuleURI: "resource:///actors/FormValidationChild.sys.mjs",
events: {
MozInvalidForm: {},
// Listening to pageshow event is only relevant if an invalid form