[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.9.0esr-13.5-1] 2 commits: fixup! Bug 40933: Add tor-launcher functionality

richard (@richard) git at gitlab.torproject.org
Tue Apr 9 19:52:47 UTC 2024



richard pushed to branch tor-browser-115.9.0esr-13.5-1 at The Tor Project / Applications / Tor Browser


Commits:
2b1f695a by Pier Angelo Vendrame at 2024-04-09T19:50:54+00:00
fixup! Bug 40933: Add tor-launcher functionality

Bug 42510: Do not call SETCONF when we do not own the tor daemon.

- - - - -
3f77b1ff by Pier Angelo Vendrame at 2024-04-09T19:50:54+00:00
fixup! Bug 40597: Implement TorSettings module

Bug 42511: Fixed a typo

TorConnectState.DisabledState -> TorConnectState.Disabled

- - - - -


2 changed files:

- toolkit/components/tor-launcher/TorProvider.sys.mjs
- toolkit/modules/TorConnect.sys.mjs


Changes:

=====================================
toolkit/components/tor-launcher/TorProvider.sys.mjs
=====================================
@@ -226,16 +226,18 @@ export class TorProvider {
       throw e;
     }
 
-    try {
-      await lazy.TorSettings.initializedPromise;
-      await this.writeSettings(lazy.TorSettings.getSettings());
-    } catch (e) {
-      logger.warn(
-        "Failed to initialize TorSettings or to write our settings, so uninitializing.",
-        e
-      );
-      this.uninit();
-      throw e;
+    if (this.ownsTorDaemon) {
+      try {
+        await lazy.TorSettings.initializedPromise;
+        await this.writeSettings(lazy.TorSettings.getSettings());
+      } catch (e) {
+        logger.warn(
+          "Failed to initialize TorSettings or to write our settings, so uninitializing.",
+          e
+        );
+        this.uninit();
+        throw e;
+      }
     }
 
     TorLauncherUtil.setProxyConfiguration(this.#socksSettings);


=====================================
toolkit/modules/TorConnect.sys.mjs
=====================================
@@ -723,7 +723,7 @@ class DisabledState extends StateCallback {
   allowedTransitions = Object.freeze([]);
 
   constructor() {
-    super(TorConnectState.DisabledState);
+    super(TorConnectState.Disabled);
   }
 
   async run() {



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/5dc406d21d88a40e73c7cf4a2d70d10ee1985bee...3f77b1fff522305154682aa72c49184036c50767

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/5dc406d21d88a40e73c7cf4a2d70d10ee1985bee...3f77b1fff522305154682aa72c49184036c50767
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/20240409/eef8eea8/attachment-0001.htm>


More information about the tbb-commits mailing list