From 7d4a636827b0a7018c6eeeec8bba5996aa32a55c Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Sun, 3 Nov 2024 14:47:33 +0000 Subject: [PATCH] fix: Increase amount of timeout when waiting for blockquotes to be displayed (fixes #2121). --- addon/content/components/message/messageIFrame.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addon/content/components/message/messageIFrame.mjs b/addon/content/components/message/messageIFrame.mjs index 7715a85b..dd79b0cd 100644 --- a/addon/content/components/message/messageIFrame.mjs +++ b/addon/content/components/message/messageIFrame.mjs @@ -142,7 +142,10 @@ async function runUntilValid(func, validator) { if (validator(ret)) { return ret; } - const TIMEOUTS = [0, 0, 10, 10, 10]; + // Wait for up to half a second. + const TIMEOUTS = [ + 0, 0, 10, 10, 10, 10, 20, 20, 20, 50, 50, 50, 50, 50, 50, 50, 50, + ]; for (const timeout of TIMEOUTS) { await sleep(timeout); ret = func();