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/fd31ee1…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/fd31ee1…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-102.10.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
07d2f3f1 by Pier Angelo Vendrame at 2023-04-20T08:58:20+02:00
fixup! Bug 4234: Use the Firefox Update Process for Base Browser.
Bug 41654: Move UpdateInfo into Data again
- - - - -
83901ef7 by Pier Angelo Vendrame at 2023-04-20T08:58:35+02:00
fixup! Bug 41668: Tweaks to the Base Browser updater for Tor Browser
Bug 41654: Fix the UpdateInfo directory path
- - - - -
1 changed file:
- toolkit/xre/nsXREDirProvider.cpp
Changes:
=====================================
toolkit/xre/nsXREDirProvider.cpp
=====================================
@@ -1213,16 +1213,24 @@ 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
+# endif
+ nsCOMPtr<nsIFile> dataDir;
rv = GetUserDataDirectoryHome(getter_AddRefs(dataDir), false);
NS_ENSURE_SUCCESS(rv, rv);
rv = dataDir->GetParent(getter_AddRefs(updRoot));
NS_ENSURE_SUCCESS(rv, rv);
+# if !defined(XP_MACOSX)
+ // For Tor Browser, the profile directory is TorBrowser/Data/Browser.
+ // Updates used to be in TorBrowser/updateInfo, so go up two directories.
+ // If we switch to data directory outside also on Windows and on Linux, we
+ // should remove this block.
+ dataDir = updRoot;
+ rv = dataDir->GetParent(getter_AddRefs(updRoot));
+ NS_ENSURE_SUCCESS(rv, rv);
# endif
rv = updRoot->AppendNative("UpdateInfo"_ns);
NS_ENSURE_SUCCESS(rv, rv);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/c24cc0…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/c24cc0…
You're receiving this email because of your account on gitlab.torproject.org.
Richard Pospesel deleted branch bug_40759 at The Tor Project / Applications / tor-browser-build
--
You're receiving this email because of your account on gitlab.torproject.org.