Page MenuHomePhabricator

Current tab should default to previous tab in stack after close, not most recently opened
Closed, InvalidPublicBUG REPORT

Description

Requirements

  • The tabs overview should not suddenly scroll when a tab towards the top is closed
  • After the current tab is closed, the current tab should become the tab right before your current tab in the stack, not the most recent tab opened

[not a release blocker] Another oddity here that I think is coming from T392925 always trying to show the current tab

Steps to reproduce

  • Open a lot of tabs so that it takes up multiple screens
  • Open your most recent tab (at the bottom)
  • Close a tab towards the top

What happens

  • Tabs shuffle up to fill in (as expected)
  • The overview jumps to the bottom

What should happen (If possible!)

  • Tabs shuffle up to fill in
  • Maintain the same scroll position (even though the bottom tab is now your current tab)

On iPad Mini
https://drive.google.com/file/d/1wTGbUh49UHRyn2SRG6pmt_4WKNnRJl_O/view?usp=sharing

Event Timeline

HNordeenWMF added a subscriber: SChekfa-WMF.

@SChekfa-WMF will investigate safari's behavior

@HNordeenWMF I investigated on Safari and here's the behavior:
let's say you have tabs A, B, C, and D open in that order. you are on tab B --> you go to the tabs view --> you close tab B, the tab you're currently on --> there is no jumping because tab C, the next tab after the one you were previously on, becomes the tab you are now on.

can we mirror our behavior in-app to reflect this Safari protocol?

@SChekfa-WMF I agree we should match safari, but we can't tell if they're jumping to A or C really can we? I think current tab becoming A makes more sense, because it works still if the current tab is the last tab. After the current tab is closed, the current tab should become the tab right before your current tab in the stack, not the most recent tab opened.

HNordeenWMF renamed this task from Maintain scroll position in tabs overview after closing tabs to Current tab should default to previous tab in stack after close, not most recently opened.Jun 10 2025, 7:02 PM
HNordeenWMF updated the task description. (Show Details)

not seeing this issue anymore