-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The built-in bridges have been updated. Added a request for built-in bridges. #23316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(if user has opened the Tor window)
I didn't see an explicit check for that in the PR. Am I right in assuming that the profile service will not run at all unless a user has opened a private window with Tor?
I reviewed the Tor parts and the overall logic, but I would appreciate if someone else could do a thorough code review.
@@ -129,7 +129,8 @@ KeyedService* TorProfileServiceFactory::BuildServiceInstanceFor( | |||
g_brave_browser_process->tor_pluggable_transport_updater(); | |||
} | |||
return new tor::TorProfileServiceImpl( | |||
context, g_browser_process->local_state(), tor_client_updater, | |||
Profile::FromBrowserContext(context)->GetOriginalProfile(), context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting that this is a Tor-related request not going over Tor, but it's intended in this case because Tor may not be accessible without a bridge. Also, it's the same request for all users.
net::DefineNetworkTrafficAnnotation("brave_tor_bridges", R"( | ||
semantics { | ||
sender: | ||
"Builtin Bridges Request" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "Built-in"
7c443cc
to
1f9e685
Compare
[puLL-Merge] - brave/brave-core@23316 DescriptionThis PR makes several changes to the Tor component in the Brave browser to support fetching and using builtin bridges from the Tor bridges server. The main motivation seems to be to allow automatically updating the list of builtin bridges used by Brave's Tor windows, rather than having them hardcoded. ChangesChanges
|
Yes, You're right. |
Resolves brave/brave-browser#37896
Once a day (if user has opened the Tor window) we request new built-in bridges config from torproject and save it in the local state.
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: