Skip to content

WIP: Implement Tor circuit hints in BundleFetcher#166

Draft
jupenur wants to merge 2 commits into
mainfrom
tor-circuit-hints
Draft

WIP: Implement Tor circuit hints in BundleFetcher#166
jupenur wants to merge 2 commits into
mainfrom
tor-circuit-hints

Conversation

@jupenur
Copy link
Copy Markdown
Member

@jupenur jupenur commented Apr 30, 2026

With this change, BundleFetchers send a custom header that the Tor Browser can use to select an appropriate circuit for the request. The header is only sent on Tor Browser.

@jupenur jupenur force-pushed the tor-circuit-hints branch from 8b18e65 to 2467467 Compare April 30, 2026 12:31
}
if (isExtensionRequest(details)) {
let headers: browser.webRequest.HttpHeaders;
if ((await browser.runtime.getBrowserInfo()).vendor === "Tor Project") {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This limits sending the circuit hints to TBB; on Firefox, no hint will be sent. Before merging, we may want to limit it further to specific versions of TBB, because until TBB implements its part, there's a risk of leaking information across origins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant