[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-102.10.0esr-12.5-1] 2 commits: fixup! Bug 4234: Use the Firefox Update Process for Base Browser.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Thu Apr 20 07:00:09 UTC 2023



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/c24cc05fc6c5452d9bdd8919d12f93def0a1e406...83901ef720d8f45dacb6b3740c687c519140bd3e

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/c24cc05fc6c5452d9bdd8919d12f93def0a1e406...83901ef720d8f45dacb6b3740c687c519140bd3e
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230420/552691d3/attachment-0001.htm>


More information about the tbb-commits mailing list