Skip to content
Snippets Groups Projects
Verified Commit fbbb577a authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
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 f1eee497
1 merge request!1043Bug 42616: Rebased alpha onto Firefox 128.0b1
......@@ -1301,6 +1301,7 @@ nsresult nsXREDirProvider::GetPortableDataDir(nsIFile** aFile,
// mode.
if (exeDirPath.LowerCaseFindASCII("/applications/") == 0) {
aIsPortable = false;
gDataDirPortable.emplace(nullptr);
return NS_OK;
}
# endif
......@@ -1353,6 +1354,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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment