Bug 898370 - Disable crash reporting when running in metrodesktop mode. r=bbondy
authorJim Mathies <jmathies@mozilla.com>
Fri, 26 Jul 2013 12:19:55 -0500
changeset 140207 999f228c8ef58dd32e3f692d90534ccedb1954b3
parent 140206 b54402f21eb8a8c1c585a094826f9e473ac8df26
child 140208 60542f3605e380b38582e6cab5ff6cb53aa75ac6
push id1945
push userryanvm@gmail.com
push dateSat, 27 Jul 2013 02:27:26 +0000
treeherderfx-team@4874fa438b1c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs898370
milestone25.0a1
Bug 898370 - Disable crash reporting when running in metrodesktop mode. r=bbondy
browser/app/nsBrowserApp.cpp
--- a/browser/app/nsBrowserApp.cpp
+++ b/browser/app/nsBrowserApp.cpp
@@ -236,16 +236,19 @@ static int do_main(int argc, char* argv[
       // relaunches Metro Firefox with this command line arg.
       mainFlags = XRE_MAIN_FLAG_USE_METRO;
     } else {
       // This command-line flag is used to test the metro browser in a desktop
       // environment.
       for (int idx = 1; idx < argc; idx++) {
         if (IsArg(argv[idx], "metrodesktop")) {
           metroOnDesktop = true;
+          // Disable crash reporting when running in metrodesktop mode.
+          char crashSwitch[] = "MOZ_CRASHREPORTER_DISABLE=1";
+          putenv(crashSwitch);
           break;
         } 
       }
     }
   }
 #endif
 
   // Desktop browser launch