Bug 1880159 - Increase the Default Agent background task timeout to prevent races when notifications wait. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D201749
This commit is contained in:
Nicholas Rishel 2024-02-13 21:45:17 +00:00
Родитель e128b341ec
Коммит de97ad15f1
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -41,8 +41,8 @@ ChromeUtils.defineLazyGetter(lazy, "log", () => {
// Should be slightly longer than NOTIFICATION_WAIT_TIMEOUT_MS in
// Notification.cpp (divided by 1000 to convert millseconds to seconds) to not
// cause race between timeouts. Currently 12 hours + 10 additional seconds.
export const backgroundTaskTimeoutSec = 12 * 60 * 60 + 10;
// cause race between timeouts. Currently 12 hours + 5 additional minutes.
export const backgroundTaskTimeoutSec = 12 * 60 * 60 + 60 * 5;
const kNotificationTimeoutMs = 12 * 60 * 60 * 1000;
const kNotificationShown = Object.freeze({