tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit ef0640a3024083e50008db82916d2547be3b5f74
parent 66986d27c3494b653ceeab63fc46d4076774840f
Author: Pier Angelo Vendrame <pierov@torproject.org>
Date:   Tue, 17 Feb 2026 09:16:43 +0100

fixup! TB 41600: Add a tor circuit display panel.

TB 44635: Gather conflux information on circuits.

Consume only the first circuit on the circuit display.

Diffstat:
Mbrowser/components/torcircuit/content/torCircuitPanel.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/browser/components/torcircuit/content/torCircuitPanel.js b/browser/components/torcircuit/content/torCircuitPanel.js @@ -293,11 +293,14 @@ var gTorCircuitPanel = { _updateCurrentBrowser() { const browser = gBrowser.selectedBrowser; const domain = TorDomainIsolator.getDomainForBrowser(browser); - const nodes = TorDomainIsolator.getCircuit( + const circuits = TorDomainIsolator.getCircuits( browser, domain, browser.contentPrincipal.originAttributes.userContextId ); + // TODO: Handle multiple circuits (for conflux). Only show the primary + // circuit until the UI for that is developed. + const nodes = circuits.length ? circuits[0] : []; // We choose the currentURI, which matches what is shown in the URL bar and // will match up with the domain. // In contrast, documentURI corresponds to the shown page. E.g. it could