-
Notifications
You must be signed in to change notification settings - Fork 900
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
Override all danger levels with download flag #21760
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
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
I've approved, but I wonder if some sort of browser testing should be added here, since this has been an issue that kept being fixed. |
Do you mean it has broken during Chromium upgrades? Because I'm not aware of it breaking in release. This particular issue ( |
Sorry I've expressed myself correctly. I wasn't referring to version bumps. As I understand, isn't this PR fixing an issue?
I mean to say a browser test could help in demonstrate that the issue was properly fixed. I'm not sure if it is necessary, but it is always useful to have tests. |
I see what you mean. I think in this case, even if we had had a browser test, it would have been insufficient to catch this issue. The problem is that I tested a bunch of extensions, but didn't realize that That said, this override now override all |
I'll merge and try to see if a browser test would be easy to do (as a follow-up). |
Fixes brave/brave-browser#35561
This is a follow-up to brave/brave-browser#28917 which was an incomplete fix for the underlying issue.
Sec review: https://github.com/brave/reviews/issues/1306
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 lint
,npm 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:
Needs to be tested on all three platforms (Windows, Mac, Linux), but no need to test on different flavours of each OS.
Open https://fmarier.org/files/safebrowsing-test.html in a new browser profile.
Set Safe Browsing to No protection in
brave://settings/security
.[Windows] Click on
test.exe
and then Save. The download should be blocked and you should see a warning in the download manager:[Windows] Click on
test.ini
and then Save. The download should be blocked and you should see the same warning in the download manager.[Mac] Click on
test.dmg
and then Save. The download should be blocked and you should see the same warning in the download manager.[Linux] Click on
test.deb
and then Save. The download should be blocked and you should see the same warning in the download manager.[Windows/Mac/Linux] Click on
test.txt
and then Save. The download should succeed without any warnings.Set
chrome://flags/#brave-override-download-danger-level
to Enabled and relaunch the browser.Repeat steps 4-7. All of the downloads should succeed without warnings.