Bug 1928452 - Change in app notification type donation_old to donation_browser. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D229794 --HG-- extra : rebase_source : 27946b6f505b19c7a8dc50e2aa33ae4ef54e9175
This commit is contained in:
Родитель
e11ff16063
Коммит
7f22cfb9d6
|
@ -45,7 +45,7 @@ export class NotificationManager extends EventTarget {
|
|||
|
||||
/**
|
||||
* Check if a notification has UI that should be shown. The only notification
|
||||
* type that doesn't have UI is the "donation_old" type, which imitates the
|
||||
* type that doesn't have UI is the "donation_browser" type, which imitates the
|
||||
* appeal behavior, where we open a webseite in the user's browser.
|
||||
* Setting name and private explicitly to work around jsdoc parsing issue.
|
||||
*
|
||||
|
@ -55,7 +55,7 @@ export class NotificationManager extends EventTarget {
|
|||
* @returns {boolean} If this notification should show a popup in the UI.
|
||||
*/
|
||||
static #isNotificationWithUI(notification) {
|
||||
return notification.type !== "donation_old";
|
||||
return notification.type !== "donation_browser";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -365,7 +365,7 @@ add_task(async function test_showDonationsOldNotification() {
|
|||
const notifications = [
|
||||
{
|
||||
id: "olddonation",
|
||||
type: "donation_old",
|
||||
type: "donation_browser",
|
||||
start_at: new Date(now - SAFETY_MARGIN_MS).toISOString(),
|
||||
end_at: new Date(now + SAFETY_MARGIN_MS).toISOString(),
|
||||
URL: "about:blank",
|
||||
|
|
Загрузка…
Ссылка в новой задаче