Bug 1918723 - Remove inline popup handlers from identity-popup. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D222283
This commit is contained in:
Tom Schuster
2024-09-18 08:40:42 +00:00
parent 77f8722d4b
commit ef1f89bffd
2 changed files with 8 additions and 2 deletions

View File

@@ -186,6 +186,14 @@ var gIdentityHandler = {
}, },
_initializePopupListeners() { _initializePopupListeners() {
let popup = this._identityPopup;
popup.addEventListener("popupshown", event => {
this.onPopupShown(event);
});
popup.addEventListener("popuphidden", event => {
this.onPopupHidden(event);
});
const COMMANDS = { const COMMANDS = {
"identity-popup-security-button": () => { "identity-popup-security-button": () => {
this.showSecuritySubView(); this.showSecuritySubView();

View File

@@ -9,8 +9,6 @@
role="alertdialog" role="alertdialog"
noautofocus="true" noautofocus="true"
aria-labelledby="identity-popup-mainView-panel-header-span" aria-labelledby="identity-popup-mainView-panel-header-span"
onpopupshown="gIdentityHandler.onPopupShown(event);"
onpopuphidden="gIdentityHandler.onPopupHidden(event);"
orient="vertical"> orient="vertical">
<panelmultiview id="identity-popup-multiView" <panelmultiview id="identity-popup-multiView"