Bug 1367743 - Use no-remote flag when starting new browser from about:profiles. r=baku
authorTed Campbell <tcampbell@mozilla.com>
Wed, 30 May 2018 11:34:14 -0400
changeset 428590 3637493053343f40e1d239ab5721893cce9f3d08
parent 428589 a21fe3bd833d9bf2cb5bcdcd20235ce4739eb9f4
child 428591 9df44f0fe08280fb29d78485a124b1d837909bd6
push id34337
push userncsoregi@mozilla.com
push dateThu, 26 Jul 2018 21:58:45 +0000
treeherdermozilla-central@8f2f847b2f9d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1367743
milestone63.0a1
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
Bug 1367743 - Use no-remote flag when starting new browser from about:profiles. r=baku MozReview-Commit-ID: 59I75Za6izI
toolkit/components/startup/nsAppStartup.cpp
--- a/toolkit/components/startup/nsAppStartup.cpp
+++ b/toolkit/components/startup/nsAppStartup.cpp
@@ -1036,16 +1036,16 @@ nsAppStartup::CreateInstanceWithProfile(
   }
 
   nsAutoCString profileName;
   rv = aProfile->GetName(profileName);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return rv;
   }
 
-  const char *args[] = { "-P", profileName.get() };
-  rv = process->Run(false, args, 2);
+  const char *args[] = { "-no-remote", "-P", profileName.get() };
+  rv = process->Run(false, args, 3);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return rv;
   }
 
   return NS_OK;
 }