зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1790277 - Convert FromValidation JSM modules to ESMs. r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D157168
This commit is contained in:
Родитель
31ce2b0171
Коммит
5b24c562b9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче