Verified Commit f7942224 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

Bug 41108: Remove privileged macOS installation from 102

parent e5cc1d52
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ static void StripQuarantineBit(NSString* aBundlePath) {
  LaunchTask(@"/usr/bin/xattr", arguments);
}

#ifdef MOZ_UPDATER
#if defined(MOZ_UPDATER) && !defined(BASE_BROWSER_VERSION)
bool LaunchElevatedDmgInstall(NSString* aBundlePath, NSArray* aArguments) {
  NSTask* task;
  if (@available(macOS 10.13, *)) {
@@ -329,7 +329,7 @@ static bool InstallFromPath(NSString* aBundlePath, NSString* aDestPath) {
    installSuccessful = true;
  }

#ifdef MOZ_UPDATER
#if defined(MOZ_UPDATER) && !defined(BASE_BROWSER_VERSION)
  // The installation may have been unsuccessful if the user did not have the
  // rights to write to the Applications directory. Check for this situation and
  // launch an elevated installation if necessary. Rather than creating a new,