From de97ad15f153e4818c0e7101496c349366724427 Mon Sep 17 00:00:00 2001 From: Nicholas Rishel Date: Tue, 13 Feb 2024 21:45:17 +0000 Subject: [PATCH] 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 --- .../mozapps/defaultagent/BackgroundTask_defaultagent.sys.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/mozapps/defaultagent/BackgroundTask_defaultagent.sys.mjs b/toolkit/mozapps/defaultagent/BackgroundTask_defaultagent.sys.mjs index 013c9639baa7..9e54fdfe4490 100644 --- a/toolkit/mozapps/defaultagent/BackgroundTask_defaultagent.sys.mjs +++ b/toolkit/mozapps/defaultagent/BackgroundTask_defaultagent.sys.mjs @@ -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({