Backed out changeset 3ed264b9dc87 (bug 1556347) for Gtest failures at /build/src/toolkit/xre/nsAppRunner.cpp on a CLOSED TREE
authorCoroiu Cristina <ccoroiu@mozilla.com>
Tue, 10 Sep 2019 19:04:36 +0300
changeset 492551 8f20684a3fcd5c73f94bca0506182564a9cfb41f
parent 492550 2dcb78435500065fa898aae8fe1c311929a8b63f
child 492552 bc13f45c239fb39542cf52579464cb268b27cdd3
push id94973
push userccoroiu@mozilla.com
push dateTue, 10 Sep 2019 16:05:08 +0000
treeherderautoland@8f20684a3fcd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1556347
milestone71.0a1
backs out3ed264b9dc879feabccc1699ba05b3a87ee84bf8
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 3ed264b9dc87 (bug 1556347) for Gtest failures at /build/src/toolkit/xre/nsAppRunner.cpp on a CLOSED TREE
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -3752,30 +3752,22 @@ int XREMain::XRE_mainStartup(bool* aExit
   // Open the display ourselves instead of using gtk_init, so that we can
   // close it without fear that one day gtk might clean up the display it
   // opens.
   if (!gtk_parse_args(&gArgc, &gArgv)) return 1;
 #endif /* MOZ_WIDGET_GTK */
 
 #ifdef FUZZING
   if (PR_GetEnv("FUZZER")) {
-    // Enable headless mode and assert that it worked, since gfxPlatform
-    // uses a static bool set after the first call to `IsHeadless`.
-    PR_SetEnv("MOZ_HEADLESS=1");
-    MOZ_ASSERT(gfxPlatform::IsHeadless());
-
     *aExitFlag = true;
     return mozilla::fuzzerRunner->Run(&gArgc, &gArgv);
   }
 #endif
 
   if (PR_GetEnv("MOZ_RUN_GTEST")) {
-    PR_SetEnv("MOZ_HEADLESS=1");
-    MOZ_ASSERT(gfxPlatform::IsHeadless());
-
     int result;
 #ifdef XP_WIN
     UseParentConsole();
 #endif
     // RunGTest will only be set if we're in xul-unit
     if (mozilla::RunGTest) {
       gIsGtest = true;
       result = mozilla::RunGTest(&gArgc, gArgv);