From a5ce638848e3c980e28e14777d0c986b6b5376e8 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Sun, 4 Oct 2026 02:23:08 +0200 Subject: [PATCH] Theseus: a background tab that is playing sound is not frozen Freezing background tabs stopped music and talks the moment you switched to another tab, which no other browser does. A tab that is audible when its freeze is due is checked again later and frozen only once it falls quiet. --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index a56505fd..43cebfd4 100644 --- a/main.js +++ b/main.js @@ -3539,6 +3539,9 @@ function scheduleFreeze(tab) { if (!settings.freezeBackgroundTabs || tab.keepRunning || tab.pending || !tab.url || tab.id === activeId) return; tab.freezeTimer = setTimeout(() => { if (tab.id === activeId || !tabs.includes(tab) || tab.keepRunning || tab.pending || tabHasPendingDialog(tab.id)) return; + // A tab playing sound (music, a talk) keeps playing, as in any browser; + // check again later and freeze it once it falls quiet. + try { if (tab.view.webContents.isCurrentlyAudible()) { scheduleFreeze(tab); return; } } catch {} setTabFrozen(tab, true); }, FREEZE_GRACE_MS); }