Closed Bug 1147785 Opened 9 years ago Closed 9 years ago

File menu: "Ctrl+W" says just "Close Tab", but when there is one tab, it actually also closes the window by default.

Categories

(Firefox :: Menus, defect)

36 Branch
x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 514053

People

(Reporter: johanssongreppet, Unassigned)

Details

(Keywords: ux-discovery, ux-error-prevention)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150320202338

Steps to reproduce:

In the File menu the item "Close tab   Ctrl+W" should say "Close tab or window    Ctrl+W" since Ctrl+W closes a tab when there are two tabs or more in the window, but closes the window when there is only one tab.
It would be more true, but I think it's not worth it.
1. It is confusing when multiple tabs are open, and changing the text when there is only one tab would require additional code (although there was an option to hide the tab bar in that case, it seems to not exist any more).
2. If you enter about:config in the address bar, you can use a pref called browser.tabs.closeWindowWithLastTab to toggle whether closing the only tab closes the window, so the code would need to consider that pref.
Component: Untriaged → Menus
Severity: normal → minor
Summary: Missing information in File menu → File menu: "Ctrl+W" says just "Close Tab", but when there is one tab, it actually also closes the window by default.
(In reply to [:Aleksej] from comment #1)
> It would be more true, but I think it's not worth it.
> 1. It is confusing when multiple tabs are open, and changing the text when
> there is only one tab would require additional code (although there was an
> option to hide the tab bar in that case, it seems to not exist any more).
> 2. If you enter about:config in the address bar, you can use a pref called
> browser.tabs.closeWindowWithLastTab to toggle whether closing the only tab
> closes the window, so the code would need to consider that pref.

OK. Thanks, Aleksej. I have now changed the pref so that Firefox behaves more in accordance with its File menu.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.