According to this page, Firefox's default shortcuts for Mac include Command + W to close a window, and Command + Shift + W to close a window.
This behavior is infuriatingly nonstandard, and defies Apple Human Interface Guidelines, which state the following (see "Closing Windows"):
Users can close windows by choosing Close from the File menu, pressing Command-W, or clicking the close button. Follow the guidelines in this section to ensure that your app closes windows as users expect.
If one starts Firefox 30.0 (the latest stable version) on OS X in safe mode (in which FF is not affected by any extensions), they will see the following in the File
menu:
As a use case, imagine a window open with several tabs. Command + W will close each tab, as expected. However, it is expected by hitting Command + W on the last tab, the window will close. This is not the case. Repeatedly using Command + W will just cause the new tab page to keep refreshing.
Is there a way with Firefox for Mac to have Command + W have the expected behavior (i.e. close the window upon closing of the last tab)? I've tried adding the Command + W shortcut under Firefox in System Preferences, however, the issue is not resolved.