-
Notifications
You must be signed in to change notification settings - Fork 901
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
Block .onion requests in non-Tor window #8040
Conversation
redirect setting is off
@@ -52,7 +52,7 @@ void OnTorProfileCreated(GURL onion_location, | |||
if (!browser) | |||
return; | |||
content::OpenURLParams open_tor(onion_location, content::Referrer(), | |||
WindowOpenDisposition::NEW_FOREGROUND_TAB, |
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 is the leftover of #7713, "Open in Tor" and auto redirect should have same window disposition
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.
Looks good to me.
I would suggest manually testing with DoH enabled once before merging, just to make sure there aren't any leaks due to that separate DNS resolver.
unrelated npm And @fmarier I have also tested with DoH enabled with |
Block .onion requests in non-Tor window
Verified
Auto redirect off
Auto redirect on
|
and show "Open in Tor" when auto redirect setting is off
Click "Open in Tor" now will have same window disposition as auto redirect
Resolves brave/brave-browser#14261
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Auto redirect off
Auto redirect on
Automatically redirect .onion sites
https://brave5t5rjjg3s6k.onion/