Closed Bug 624689 Opened 14 years ago Closed 14 years ago

undo close tab restores empty tab which has not been created by user

Categories

(Firefox :: Session Restore, defect)

x86
Other
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 581937

People

(Reporter: kdevel, Unassigned)

Details

User-Agent:       
Build Identifier: http://hg.mozilla.org/mozilla-central/rev/d2bd42931b03

If browser.tabs.closeWindowWithLastTab is set to "false" closing "the last" tab does unfortunately not leave the browser with no tab (as in many programms with MDI) but with an empty tab named "New Tab" instead. 

This "New Tab" is replaced by the last closed tab if "un

Reproducible: Always

Steps to Reproduce:
1. set browser.tabs.closeWindowWithLastTab to false.
2. open two tabs, say http://nic.de/ and http://ripe.net/
3. close the second and then the first tab
4. invoke "Undo Close Tab"
5. invoke "Undo Close Tab"
6. invoke "Undo Close Tab"
Actual Results:  
4. -> "New Tab" is replaced by http://nic.de/
5. -> "New Tab" reappears right to the tab containing http://nic.de/
6. -> A new tab containing http://ripe.net/ appears between both tabs

Expected Results:  
The "consistent with 3.5 expectation:"

5. -> A new tab containing http://ripe.net/ appears right of the first tab.
6. do not offer "Undo Closed Tab".

The "natural" expectation:

3. -> really close last tab, leave non open (as classical MDI)
Implement "Undo Close Tab" as method of the tab container.
This is a close dup of bug 592272, but that itself has been duped to bug 581937.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Component: General → Session Restore
QA Contact: general → session.restore
Hardware: Other → x86
Resolution: --- → DUPLICATE
Version: unspecified → Trunk
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.