diff options
Diffstat (limited to 'toolkit/content/globalOverlay.js')
-rw-r--r-- | toolkit/content/globalOverlay.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/toolkit/content/globalOverlay.js b/toolkit/content/globalOverlay.js index d8467f0a12..d5ee131916 100644 --- a/toolkit/content/globalOverlay.js +++ b/toolkit/content/globalOverlay.js @@ -4,12 +4,6 @@ function closeWindow(aClose, aPromptFunction) { -#ifdef XP_MACOSX - // Closing the last window doesn't quit the application on OS X. - if (typeof(aPromptFunction) == "function" && !aPromptFunction()) { - return false; - } -#else var windowCount = 0; var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); @@ -29,7 +23,6 @@ function closeWindow(aClose, aPromptFunction) return false; if (windowCount != 1 && typeof(aPromptFunction) == "function" && !aPromptFunction()) return false; -#endif if (aClose) { window.close(); |