From f8704c84a751716bad093b9bdc482db53fe5b3ea Mon Sep 17 00:00:00 2001 From: Nicholas Rishel Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Bug 1880159 - Increase the Default Agent background task timeout to prevent races when notifications wait. r=nalexander a=pascalc Original Revision: https://phabricator.services.mozilla.com/D201749 Differential Revision: https://phabricator.services.mozilla.com/D201755 --- .../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 013c9639baa73..9e54fdfe44902 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({