Commit 66b8cf31 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! Bug 9173: Change the default Firefox profile directory to be relative.

Always shortcut the portable installation check on macOS after the
first run of nsXREDirProvider::GetPortableDataDir.
parent 3b54cd07
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1262,6 +1262,7 @@ nsresult nsXREDirProvider::GetPortableDataDir(nsIFile** aFile,
  // mode.
  if (exeDirPath.LowerCaseFindASCII("/applications/") == 0) {
    aIsPortable = false;
    gDataDirPortable.emplace(nullptr);
    return NS_OK;
  }
#  endif
@@ -1314,6 +1315,7 @@ nsresult nsXREDirProvider::GetPortableDataDir(nsIFile** aFile,
    rv = localDir->Create(nsIFile::DIRECTORY_TYPE, 0700);
    if (NS_FAILED(rv)) {
      aIsPortable = false;
      gDataDirPortable.emplace(nullptr);
      return NS_OK;
    }
  }