-
Notifications
You must be signed in to change notification settings - Fork 903
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
Only allow whitelisted protocols to load in Tor #583
Conversation
b6a87ed
to
602a73a
Compare
c9ca92d
to
6867ae6
Compare
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "brave/browser/renderer_host/brave_navigation_ui_data.h" | ||
#include "chrome/browser/renderer_host/chrome_navigation_ui_data.h" |
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 line is redundant
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.
Addressed in 2a7f344, thanks.
6867ae6
to
6986029
Compare
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.
nice work for covering CreateForMainFrameNavigation
Only allow whitelisted protocols to load in Tor
Only allow whitelisted protocols to load in Tor
Close brave/brave-browser#1378
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
manual test:
Open a tor window and try to navigate to file://test should show an error page as below.
auto test:
npm test brave_unit_tests -- --filter=BraveTorNetworkDelegateHelperTest.*
Reviewer Checklist: