Bug 715802 - Move mac quirks triggering into nsSuiteApp.cpp. r=BenWa a=Neil
authorJustin Wood <bugspam.Callek>
Sat, 21 Jan 2012 05:56:00 -0500
changeset 10138 81ff7636686ccc1a068fe7e1ca019abb1a1da469
parent 10137 4552e57d535aa8fa00d73bb5f7da2b8cf9633d97
child 10139 f1b04433ecf7d0177efaca7576740e39c3fde9b4
push idunknown
push userunknown
push dateunknown
reviewersBenWa, Neil
bugs715802
Bug 715802 - Move mac quirks triggering into nsSuiteApp.cpp. r=BenWa a=Neil
suite/app/nsSuiteApp.cpp
--- a/suite/app/nsSuiteApp.cpp
+++ b/suite/app/nsSuiteApp.cpp
@@ -37,16 +37,20 @@
  * ***** END LICENSE BLOCK ***** */
 
 #include "nsXULAppAPI.h"
 #ifdef XP_WIN
 #include <windows.h>
 #include <stdlib.h>
 #endif
 
+#ifdef XP_MACOSX
+#include "MacQuirks.h"
+#endif
+
 #include <stdio.h>
 #include <stdarg.h>
 
 #include "nsCOMPtr.h"
 #include "nsILocalFile.h"
 #include "nsStringGlue.h"
 
 #ifdef XP_WIN
@@ -79,16 +83,20 @@ class ScopedLogging
 public:
   ScopedLogging() { NS_LogInit(); }
   ~ScopedLogging() { NS_LogTerm(); }
 };
 
 int main(int argc, char* argv[])
 {
   ScopedLogging log;
+  
+#ifdef XP_MACOSX
+  TriggerQuirks();
+#endif
 
   nsCOMPtr<nsILocalFile> appini;
   nsresult rv = XRE_GetBinaryPath(argv[0], getter_AddRefs(appini));
   if (NS_FAILED(rv)) {
     Output("Couldn't calculate the application directory.");
     return 255;
   }
   appini->SetNativeLeafName(NS_LITERAL_CSTRING("application.ini"));