Bug 1369909 - re-add quit command to quit shortcut (d'oh), r?mikedeboer draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Sun, 04 Jun 2017 07:42:28 +0200
changeset 588752 5c3e417dc7938625a29f38ea7328e78a276dc476
parent 588052 aeb3d0ca558f034cbef1c5a68bd07dd738611494
child 631670 37ece4fb208a2421fbd22bd80eea5353ccf72cd3
push id62146
push usergijskruitbosch@gmail.com
push dateSun, 04 Jun 2017 16:52:52 +0000
reviewersmikedeboer
bugs1369909
milestone55.0a1
Bug 1369909 - re-add quit command to quit shortcut (d'oh), r?mikedeboer MozReview-Commit-ID: FtBPqW511hD
browser/base/content/browser-sets.inc
--- a/browser/base/content/browser-sets.inc
+++ b/browser/base/content/browser-sets.inc
@@ -354,16 +354,22 @@
     <key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/>
 #endif
     <key id="key_quitApplication" key="&quitApplicationCmd.key;"
 #ifdef XP_WIN
          modifiers="accel,shift"
 #else
          modifiers="accel"
 #endif
+# On OS X, dark voodoo magic invokes the quit code for this key.
+# So we're not adding the attribute on OSX because of backwards/add-on compat.
+# See bug 1369909 for background on this.
+#ifndef XP_MACOSX
+         command="cmd_quitApplication"
+#endif
          reserved="true"/>
 
 #ifdef FULL_BROWSER_WINDOW
     <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
 #endif
     <key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/>
 
 #ifdef XP_GNOME