henry pushed to branch tor-browser-128.8.0esr-14.5-1 at The Tor Project / 
Applications / Tor Browser


Commits:
4b55145d by Henry Wilkes at 2025-03-10T11:17:32+00:00
fixup! TB 31286: Implementation of bridge, proxy, and firewall settings in 
about:preferences#connection

TB 43547: Removing the last bridge sets the source to Invalid instead.

- - - - -


1 changed file:

- browser/components/torpreferences/content/connectionPane.js


Changes:

=====================================
browser/components/torpreferences/content/connectionPane.js
=====================================
@@ -739,9 +739,16 @@ const gBridgeGrid = {
       }
       strings.splice(index, 1);
 
-      TorSettings.changeSettings({
-        bridges: { source, bridge_strings: strings },
-      });
+      if (strings.length) {
+        TorSettings.changeSettings({
+          bridges: { source, bridge_strings: strings },
+        });
+      } else {
+        // Remove all bridges and disable.
+        TorSettings.changeSettings({
+          bridges: { source: TorBridgeSource.Invalid },
+        });
+      }
     });
   },
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/4b55145de6d967acc185699306819e372cbec677

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/4b55145de6d967acc185699306819e372cbec677
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to