Last Comment Bug 654755 - The tab stack does not remember/honour visibility order after removing tabs from the window
: The tab stack does not remember/honour visibility order after removing tabs f...
Status: NEW
Product: Firefox
Classification: Client Software
Component: Tabbed Browser (show other bugs)
: 4.0 Branch
: x86_64 Windows 7
-- normal with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Dão Gottwald [:dao]
Depends on:
  Show dependency treegraph
Reported: 2011-05-04 10:23 PDT by cody.j.b.scott
Modified: 2015-10-31 17:36 PDT (History)
7 users (show)
sfranks: firefox‑backlog+
mmucci: qe‑verify?
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: 8
Has Regression Range: ---
Has STR: ---


Description User image cody.j.b.scott 2011-05-04 10:23:18 PDT
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

For example if you are have multiple tabs open but decide you want to view two pages at once. The first page you want to view you are currently viewing and the second is a tab in the same Firefox window. So you drag the second tab you want to view into a new window or an existing window and your current page changes to the tab next to the tab you just dragged off. It should stay on the current page you are viewing.

Reproducible: Always

Steps to Reproduce:
1. open at least 3 tabs
2. view the first tab
3. drag the third plus tab to make a new window
4. you are now viewing the second tab
5. But you wanted to view the first and third at the same time.

Actual Results:  
You are viewing a different tab then you were when you dragged the other tab out of your current Firefox window

Expected Results:  
You should have stayed viewing the page you were viewing before dragging the tab out of your current Firefox window
Comment 1 User image Eric Sh. 2011-10-07 15:26:55 PDT
I can confirm this bug on Nightly 10.0a1

A possible fix would be remembering the last viewed tab and just go back to it if you detach a tab out of a window, or only setting focus to a tab on mouse up so that dragged tabs never get focus.
Comment 2 User image Ioana (away) 2012-01-10 05:16:57 PST
Verified that this issue reproduces on:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:12.0a1) Gecko/20120109 Firefox/12.0a1
Comment 3 User image Zac C (:zac) 2014-07-08 06:34:26 PDT
33.0a1 (2014-07-03)
build id: 20140703055654

1. Open a window with 5 tabs
2. Open/focus the 2nd tab
3. Grab the last tab and move it out of the window to empty screen space so it is in its own window
Now the focussed tab will be the 4th tab, not the 2nd tab.

Use case: you are viewing a video in the 2nd tab and want to move the 5th tab out (to empty screen space) without interrupting your viewing.

We can improve the user experience if the the tab stack remembers the visibility order of the tabs like an OS remembers the visibility order of windows.
Comment 4 User image Sevaan Franks [:sevaan] 2014-07-08 08:08:47 PDT
I am able to duplicate the bug, and agree, the focus should remain on the tab a user is looking at.

Note You need to log in before you can comment on or make changes to this bug.