-
Notifications
You must be signed in to change notification settings - Fork 906
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
Disable flash in Tor #624
Disable flash in Tor #624
Conversation
Works fine on mac, I'm building it on window & linux now to test. |
@bbondy This PR is ready for review, I can't do the manual test on linux though because flash seems to be not working on linux(brave/brave-browser#1562), but in theory I think this PR works for all platforms. |
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.
LGTM
const PageInfoUI::PermissionInfo& info, | ||
content::WebContents* web_contents) { | ||
if ((info.type == CONTENT_SETTINGS_TYPE_PLUGINS || | ||
info.type == CONTENT_SETTINGS_TYPE_GEOLOCATION) && |
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.
Corresponding issue just said about blocking plugin.
Do we also want to hide location info in page info bubble?
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 intentional cuz location permission is blocked in tor.
Or, how about storing flash plugin & geolocation setting to ContentSettingsStore? |
@simonhong I think it would be a bit weird that these default settings in Tor profile is "set by extension". |
@yrliou Yeah, using appropriate providers seems make sense. My above comment is non-blocking comment. So you can go ahead with current one. |
Fix brave/brave-browser#1078
Flash is blocked by default right now, with this PR, users won't be able to enable it through content settings bubble or page info in Tor profile, so the settings should always stay blocked.
BTW, changing flash permissions in the normal profile won't be propagated to Tor profile either.
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:
![screen shot 2018-10-12 at 1 42 33 pm](https://user-images.githubusercontent.com/4730197/46893155-e3281700-ce24-11e8-9e3c-c20561b8e645.png)
4. Click the page info, there should be no flash entry to change permission.Reviewer Checklist: