Pier Angelo Vendrame pushed to branch base-browser-102.10.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits: fd31ee11 by Pier Angelo Vendrame at 2023-04-20T09:01:57+02:00 fixup! Bug 4234: Use the Firefox Update Process for Base Browser.
Bug 41654: Move UpdateInfo into Data again
- - - - -
1 changed file:
- toolkit/xre/nsXREDirProvider.cpp
Changes:
===================================== toolkit/xre/nsXREDirProvider.cpp ===================================== @@ -1211,15 +1211,15 @@ nsresult nsXREDirProvider::GetUpdateRootDir(nsIFile** aResult, NS_ENSURE_SUCCESS(rv, rv);
#if defined(BASE_BROWSER_UPDATE) - nsCOMPtr<nsIFile> dataDir; // For Base Browser and derivatives, we store update history, etc. within the // UpdateInfo directory under the user data directory. # if defined(ANDROID) # error "The Base Browser updater is not supported on Android." -# else - rv = GetUserDataDirectoryHome(getter_AddRefs(dataDir), false); +# elif defined(XP_MACOSX) + rv = GetUserDataDirectory(getter_AddRefs(updRoot), false); NS_ENSURE_SUCCESS(rv, rv); - rv = dataDir->GetParent(getter_AddRefs(updRoot)); +# else + rv = GetUserDataDirectoryHome(getter_AddRefs(updRoot), false); NS_ENSURE_SUCCESS(rv, rv); # endif rv = updRoot->AppendNative("UpdateInfo"_ns);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/fd31ee11...