gh-13400: Fixed modal text being cutoff (gh-13410)

This commit is contained in:
mr. m
2026-04-26 00:00:44 +02:00
committed by GitHub
parent 0cfc25ccb0
commit cd956d34b1
5 changed files with 36 additions and 12 deletions

View File

@@ -1116,9 +1116,9 @@ class nsZenWindowSync {
*/
async #onTabSwitchOrWindowFocus(aWindow, aPreviousTab = null) {
let activeBrowsers = aWindow.gBrowser.selectedBrowsers;
let activeTabs = activeBrowsers.map(browser =>
aWindow.gBrowser.getTabForBrowser(browser)
);
let activeTabs = activeBrowsers
.map(browser => aWindow.gBrowser.getTabForBrowser(browser))
.filter(tab => tab);
// Ignore previous tabs that are still "active". These scenarios could happen for example,
// when selecting on a split view tab that was already active.
if (