From 0bc49b155fad70b434d966c00d0ecbd8c296bc05 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Sun, 9 Nov 2025 07:19:46 +0100 Subject: [PATCH] only push empty tab when authenticate container available --- app/lib/features/geckoview/domain/repositories/tab.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lib/features/geckoview/domain/repositories/tab.dart b/app/lib/features/geckoview/domain/repositories/tab.dart index ba8e906b..ffb96ff6 100644 --- a/app/lib/features/geckoview/domain/repositories/tab.dart +++ b/app/lib/features/geckoview/domain/repositories/tab.dart @@ -334,7 +334,10 @@ class TabRepository extends _$TabRepository { return _tabsService.selectTab(tabId: nextContainerTabs!.first); } - if (ref.mounted && availableContainers.isNotEmpty) { + if (ref.mounted && + availableContainers.any( + (container) => container.metadata.authSettings.authenticationRequired, + )) { //Last resort push new tab to avoid any authenticated tab is selected // ignore: avoid_redundant_argument_values await addTab(selectTab: true, private: false);