Bug 1893153 - Port Bug 1869065: Re-visit some of the element property names used in moz-message-bar. r=freaktechnik

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

--HG--
extra : amend_source : 85974caab8eac91c8bd004544b3ed9475668baf9
This commit is contained in:
Brendan Abolivier 2024-04-24 11:56:16 +00:00
Родитель bb958554ab
Коммит 8f2c3b33fa
5 изменённых файлов: 8 добавлений и 8 удалений

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

@ -196,7 +196,7 @@ async function setupMaxReminders() {
},
null
);
notification.closeButtonEl.hidden = true;
notification.closeButton.hidden = true;
} else {
gReminderNotification.removeAllNotifications();
}

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

@ -1499,7 +1499,7 @@ var chatHandler = {
},
[acceptButton, denyButton]
);
notification.closeButtonEl?.remove();
notification.closeButton?.remove();
notification.dismissable = false;
if (!gChatTab) {
const tabmail = document.getElementById("tabmail");
@ -1573,7 +1573,7 @@ var chatHandler = {
},
[acceptButton, denyButton]
);
notification.closeButtonEl?.remove();
notification.closeButton?.remove();
notification.dismissable = false;
if (!gChatTab) {
const tabmail = document.getElementById("tabmail");
@ -1638,7 +1638,7 @@ var chatHandler = {
conversation: aSubject.conversationName,
}
);
notification.closeButtonEl?.remove();
notification.closeButton?.remove();
notification.dismissable = false;
if (!gChatTab) {
const tabmail = document.getElementById("tabmail");

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

@ -32,7 +32,7 @@ add_task(async function testGrantingBuddyRequest() {
const notification = notificationBox.getNotificationWithValue(value);
ok(notification, "notification shown");
ok(!notification.dimissable, "Can't dismiss without interacting");
ok(!notification.closeButtonEl, "Can't dismiss without interacting");
ok(!notification.closeButton, "Can't dismiss without interacting");
const closePromise = new Promise(resolve => {
notification.eventCallback = () => {
resolve();
@ -182,7 +182,7 @@ add_task(async function testGrantingChatRequest() {
const notification = notificationBox.getNotificationWithValue(value);
ok(notification, "notification shown");
ok(!notification.dimissable, "Can't dismiss without interacting");
ok(!notification.closeButtonEl, "Can't dismiss without interacting");
ok(!notification.closeButton, "Can't dismiss without interacting");
const closePromise = new Promise(resolve => {
notification.eventCallback = () => {
resolve();

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

@ -418,7 +418,7 @@ async function checkFocusCycling(win, options) {
if (options.notifications) {
// Focus inside the notification.
const closeButton = (secondNotification || firstNotification).closeButtonEl;
const closeButton = (secondNotification || firstNotification).closeButton;
closeButton.focus();
goBackward();

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

@ -653,7 +653,7 @@ add_task(async function testWarningNotShownAfterDismissal() {
const notification = cwc.gComposeNotification.getNotificationWithValue(
"warnPublicRecipientsNotification"
);
EventUtils.synthesizeMouseAtCenter(notification.closeButtonEl, {}, cwc);
EventUtils.synthesizeMouseAtCenter(notification.closeButton, {}, cwc);
await notificationHidden;