Closed Bug 1149267 Opened 10 years ago Closed 6 years ago

"Show my windows and tabs from last time" remembers the final closed tab, after the user had intended to close it (and the window closed).

Categories

(Firefox :: Session Restore, defect)

4.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 492383

People

(Reporter: theprash, Unassigned)

References

Details

(Keywords: uiwanted, ux-consistency)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150320202338 Steps to reproduce: 1. Enable the "Show my windows and tabs from last time" option. 2. Open some web pages in multiple tabs. 3. Close every tab, either with the mouse or Ctrl-W (closing the last tab will exit Firefox) 4. Start Firefox Actual results: The last tab is remembered and restored. Expected results: An empty tab page should be displayed. The last tab was closed and therefore should be forgotten.
[bugday-20150406] You can get more or less your desired behavior by setting browser.tabs.closeWindowWithLastTab to false in about:config.
Reproduced with firefox-37.0.1.en-US.linux64.
QA Whiteboard: [bugday-20150406]
Component: Untriaged → Session Restore
OS: Windows 7 → All
Summary: "Show my windows and tabs from last time" remembers the final closed tab → "Show my windows and tabs from last time" remembers the final closed tab, after the user had intended to close it (and the window closed).
@kenkon@gmail.com If I understand what closeWindowWithLastTab does, I don't believe that's the problem here. Once the last window is explicitly closed, it should not be reopened when Firefox is reopened later. I should not be forced to quit Firefox explicitly after closing the last tab to dodge this bug. 1.) If I hit File >>> Exit when I have one tab in one window open, I'd expect that to reopen. 2.) If I hit Ctrl-W when I have one tab in one window open, and Firefox quits (as it should), I don't expect to see that window's content again when Firefox is restarted. As Prash points out, in case 2.), "The last tab was closed and therefore should be forgotten".
I can confirm this issue on FF 44 on Linux. @Ruffin: Please don't put email addresses here, spam bots will find them.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: x86_64 → All
See Also: → 956131
Whiteboard: [DUPEME]
Version: 36 Branch → 4.0 Branch
There is related unwanted last tab restoration behaviour when launching Firefox with a URL parameter, regardless of the value of closeWindowWithLastTab; see https://bugzilla.mozilla.org/show_bug.cgi?id=1268969 (it doesn't seem to be possible for me to add this to the "see also" bug list).
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Whiteboard: [DUPEME]
You need to log in before you can comment on or make changes to this bug.