From 6537c3407cfd9cea2c85ef66015dd5aa35d27834 Mon Sep 17 00:00:00 2001 From: Miles Blackwood Date: Tue, 26 Aug 2025 11:35:23 -0400 Subject: [PATCH] Uses setTimeout to shim requestIdleCallback (#16143) * Makes inline menu handler async to resolve Safari issue. * Don't use idle callback deadline as timeout delay. * Revert "Makes inline menu handler async to resolve Safari issue." This reverts commit d3f7461cfaae440f33d5be48278c01e5d6f74dde. --------- Co-authored-by: Robyn MacCallum --- apps/browser/src/autofill/utils/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/browser/src/autofill/utils/index.ts b/apps/browser/src/autofill/utils/index.ts index 614a5b014f2..0e102dcfd99 100644 --- a/apps/browser/src/autofill/utils/index.ts +++ b/apps/browser/src/autofill/utils/index.ts @@ -37,9 +37,7 @@ export function requestIdleCallbackPolyfill( return globalThis.requestIdleCallback(() => callback(), options); } - const timeoutDelay = options?.timeout || 1; - - return globalThis.setTimeout(() => callback(), timeoutDelay); + return globalThis.setTimeout(() => callback(), 1); } /**