Closed Bug 1521300 Opened 7 years ago Closed 7 years ago

Undo close tab should be moved to Edit - Undo and bound to cmd-Z on Mac

Categories

(Firefox :: Tabbed Browser, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: will, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce:

Have two tabs open, close one tab.

Actual results:

Right-click on the remaining tab offers 'Undo close tab', Edit menu Undo is greyed out, cmd-Z does not do anything

Expected results:

Edit menu undo (and cmd-Z) should be live and should undo closing the last tab as that was the last undoable action performed

Component: Untriaged → Tabbed Browser

The "Edit" menu and the entries under this menu are only for text editing.

What you want is to go to the history menu and use either "Recently closed Tabs" or "Recently closed windows" or the keyboard shortcuts Command+shift+T (tab) and Command+shift+N (window).

Chrome is using the same keyboard shortcuts as Firefox and it works in Safari as well.
Safari is the only browser that supports ctrl+z additional to command+shift+t.

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID

On the Mac the Edit menu is not just for text.
The Apple Human Interface Guidelines (https://developer.apple.com/design/human-interface-guidelines/macos/menus/menu-bar-menus/#edit-menu) state that Undo in the Edit menu "Reverses the effect of the previous user operation."
That Chrome does it wrong also does not seem relevant.

https://bugzilla.mozilla.org/show_bug.cgi?id=342700#c14 is the comment that explains the decisions why it's not under Edit/undo (ctrl+z)

Wow, Firefox 2.0, a blast from the past.
I'll mention only that that thread was operating system agnostic. My point here is that for Firefox to be a good Mac citizen it should follow Mac conventions.
If the goal is for Firefox to be consistent across platforms the decision to keep Undo for text makes sense. Users on other systems expect the Edit menu to apply to text, whereas on the Mac Undo/Redo apply more globally.

The problem is not to be consistent across the different platforms but every tab or window have it's own undo stack and the undo is not global for all windows and tabs.
There are many good reason to do it this way and the only tradeoff is that it's difficult to implement an undo that restores closed windows and tabs.

That is the reason why the Mozilla manager in charge decided that the undo for a closed window/tab is bound to a different keyboard shortcut.

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