Skip to content

Commit 65f1d23

Browse files
committed
feat(tabs): enable upstream kBackToOpener feature by default
1 parent a2dc1ea commit 65f1d23

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/chrome/browser/ui/tabs/features.cc b/chrome/browser/ui/tabs/features.cc
2+
index 1e2755e28c..898ed6d57e 100644
3+
--- a/chrome/browser/ui/tabs/features.cc
4+
+++ b/chrome/browser/ui/tabs/features.cc
5+
@@ -34,7 +34,10 @@ BASE_FEATURE(kHorizontalTabStripComboButton, base::FEATURE_DISABLED_BY_DEFAULT);
6+
7+
// Enables Back-to-Opener behavior, allowing users to press the back button in a
8+
// newly opened tab to close that tab and return focus to the opener tab.
9+
-BASE_FEATURE(kBackToOpener, base::FEATURE_DISABLED_BY_DEFAULT);
10+
+// Dao: enabled by default so newly opened tabs from initiator-frame
11+
+// navigations (right-click "Open in New Tab", middle-click, target="_blank")
12+
+// can be closed via the Back button to return to the opener.
13+
+BASE_FEATURE(kBackToOpener, base::FEATURE_ENABLED_BY_DEFAULT);
14+
15+
bool IsVerticalTabsFeatureEnabled() {
16+
return base::FeatureList::IsEnabled(kVerticalTabs) ||

0 commit comments

Comments
 (0)