Verified Commit 090596f6 authored by henry's avatar henry Committed by ma1
Browse files

fixup! TB 31286: Implementation of bridge, proxy, and firewall settings in...

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.
parent b6c44649
Loading
Loading
Loading
Loading
+7 −0
Changes for browser/components/torpreferences/content/connectionPane.js: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -739,9 +739,16 @@ const gBridgeGrid = {
      }
      strings.splice(index, 1);

      if (strings.length) {
        TorSettings.changeSettings({
          bridges: { source, bridge_strings: strings },
        });
      } else {
        // Remove all bridges and disable.
        TorSettings.changeSettings({
          bridges: { source: TorBridgeSource.Invalid },
        });
      }
    });
  },