-
Notifications
You must be signed in to change notification settings - Fork 879
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
Tor profile rework #3319
Tor profile rework #3319
Conversation
6d3a6ea
to
bb3440b
Compare
d30e5cf
to
8a2daba
Compare
3d457c2
to
1fdaa0c
Compare
|
||
// Return the parent profile which used to create Tor profile. This method | ||
// returns this if the profile is not Tor profile. | ||
Profile* Profile::GetParentProfile() { |
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.
We cannot always use ProfileManager directly to get Tor parent profile by its path because we need to access this during shutdown when ProfileManager is already going away and g_browser_process->profile_manager() returns null in this case, so I end up putting it in Profile class (it is needed by both ProfileImpl and TestingProfile).
For the TODO to fix SearchEngineProviderServiceTest.CheckDefaultTorProfileSearchProviderTest breakage, I'm thinking of disabling the search engine pref retention test part in |
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.
overall looks good
chromium_src/chrome/browser/bookmarks/bookmark_model_factory.cc
Outdated
Show resolved
Hide resolved
chromium_src/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
Outdated
Show resolved
Hide resolved
chromium_src/chrome/browser/content_settings/host_content_settings_map_factory.cc
Outdated
Show resolved
Hide resolved
@@ -162,7 +162,8 @@ IN_PROC_BROWSER_TEST_F(SearchEngineProviderServiceTest, | |||
service->SetUserSelectedDefaultSearchProvider(&other_url); | |||
} | |||
|
|||
// Check changed provider in tor profile is retained across the sessions. | |||
// Check changed provider in tor profile should not be retained across the | |||
// sessions. |
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.
This test was expecting the search engine pref in Tor profile to be retained across the sessions which is not true after this PR. Since we don't have UI exposed to users at the moment (Settings page in Tor profile is an empty page for release builds at the moment.) and we have an open issue to change the search engine in the normal profile (the parent profile) brave/brave-browser#2158, I think it's better to readdress the functionality of changing search engines for Tor profile while fixing brave/brave-browser#2158.
…tensions_browser_client.cc
7063372
to
2861828
Compare
5b584cf
to
1db5505
Compare
Only CI failure is a known intermittent error in linux network-audit, but it was passing in previous tries, should be safe to ignore this one.
|
Was forwarded here from this issue thread: Please consider adding the ability to use browser extensions when running in Tor mode. This is incredibly important for a11y features such as user stylesheets, machine translation, colour inversion, forced high contrast, screen readers, and more. |
Fix brave/brave-browser#2307
It would be easier to review this PR per commit.
What this PR does:
(601b6f1)
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Show bookmarks bar
.Show bookmarks bar
Reviewer Checklist:
After-merge Checklist:
changes has landed on.