From a1c4072a4f9e7bd64a440f562e14673fae6ac5b9 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Wed, 11 Feb 2026 11:40:41 +0100 Subject: [PATCH] remove smae container guard for parents --- app/lib/features/geckoview/domain/repositories/tab.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/lib/features/geckoview/domain/repositories/tab.dart b/app/lib/features/geckoview/domain/repositories/tab.dart index 266896a7..20a07873 100644 --- a/app/lib/features/geckoview/domain/repositories/tab.dart +++ b/app/lib/features/geckoview/domain/repositories/tab.dart @@ -293,11 +293,9 @@ class TabRepository extends _$TabRepository { if (!ref.mounted) return; - // Priority 1: Check for parent tab first (if exists and in same container) + // Priority 1: Check for parent tab first if (tabState?.parentId != null) { - if (sameContainerTabs.any((tab) => tab == tabState?.parentId)) { - return _tabsService.selectTab(tabId: tabState!.parentId!); - } + return _tabsService.selectTab(tabId: tabState!.parentId!); } // Priority 2: Check for previous tab by timestamp