-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Downloads bubble doesn't popup when the download is blocked/dangerous (safe browsing disabled) #29651
Comments
@Emi-TheDhamphirInLoveUnderTheFrozenStar Thanks for reporting. I'll take a look. |
According to the comment below, dangerous download is considered as a completed.
Below method determines whether toolbar button should be shown( @Emi-TheDhamphirInLoveUnderTheFrozenStar What you're seeing is expected behavior with current implementation.
|
Verification
|
Brave | 1.53.83 Chromium: 114.0.5735.110 (Official Build) beta (x86_64) |
---|---|
Revision | 1c828682b85bbc70230a48f5e345489ec447373e-refs/branch-heads/5735_90@{#13} |
OS | macOS Version 11.7.7 (Build 20G1345) |
Safe Browsing
disabled - PASSED
Steps:
- installed
1.53.83
- launched Brave
- toggled
Safe Browsing
toNo Protection
inbrave://settings/security
- confirmed warning about disabling
Safe Browsing
- loaded
https://www.majorgeeks.com/mg/get/fort_firewall,2.html
- confirmed auto-download save-as-file location-picker dialog (!) came up
- clicked
Save
- confirmed file downloaded without additional warnings
- cleared file
- repeated steps 5-8
example | example | example | example | example | example |
---|---|---|---|---|---|
Safe Browsing
enabled (Standard protection
; default) - PASSED
Steps:
- installed
1.53.83
- launched Brave
- confirmed
Safe Browsing
was set toStandard Protection
inbrave://settings/security
- loaded
https://www.majorgeeks.com/mg/get/fort_firewall,2.html
- confirmed auto-download save-as-file location-picker dialog (!) came up
- clicked
Save
- confirmed file downloaded without additional warnings
- cleared file
- repeated steps 4-7
Also tried with https://www.audacityteam.org/download/mac/
and https://mac.softpedia.com/get/System-Utilities/AppCleaner.shtml
(and others, not pictured)
example | example | example | example | example | example | example | example |
---|---|---|---|---|---|---|---|
Blocked downloads
Blocked, Insecure
- PASSED
Steps:
- installed
1.53.84
- launched Brave
- loaded
https://testsafebrowsing.appspot.com/
- clicked on and saved
https://testsafebrowsing.appspot.com/s/content.exe
Blocked, Dangerous
- PASSED
Steps:
- installed
1.53.84
- launched Brave
- loaded
https://testsafebrowsing.appspot.com
- clicked on and saved
https://testsafebrowsing.appspot.com/s/badrep.exe
Blocked, Uncommon file
- PASSED
Steps:
- installed
1.53.84
- launched Brave
- opened
https://testsafebrowsing.appspot.com
- clicked on and saved
https://testsafebrowsing.appspot.com/s/unknown.exe
Keep
flow - PASSED
Encountered:
NOTE: I will retest the above scenarios in #30882 once it lands 👍
@simonhong mind reviewing my steps and results, from above, before I mark it as |
Hmm, I also can't repro anymore. it's always treated as normal download file.. |
OK, I'll redo the EDIT: No, the above is for scheme-mismatch (i.e. So there are at least |
@simonhong @rebron can you/the team take a look at #30626 when you get a chance? I keep running into it on both |
I'll take a look |
Verification
Case 1: Safe Browsing disabled -
Continue from Case 1:
Confirmed download button is shown with warning bubble when clicked the button
Safe Browsing enabled (Standard protection; default) - Steps:
Confirmed no additional warnings shown in the bubble and the file downloaded
|
…lift to 1.52.x) (#19151) * Fixed download button is not shown when dangerous file downloaded fix brave/brave-browser#29651 * [113.0.5672.63 follow up] Fix build failure. Chromium changes: https://source.chromium.org/chromium/chromium/src/+/e1a48ccd6d3ea6fb6bd8a9d82cecd4cad1b3a202 commit e1a48ccd6d3ea6fb6bd8a9d82cecd4cad1b3a202 Author: Lily Chen <chlily@chromium.org> Date: Fri Apr 21 20:11:47 2023 +0000 [DownloadBubble] Compute info relevant to button state in update service This moves the computation of the AllDownloadUIModelsInfo from the per-window DownloadDisplayController to the per-profile DownloadBubbleUpdateService. This avoids redundant fetching of models from the update service, which is expensive and potentially causes jank while downloading files, since the models are not needed (just the info about them) in order to update the button state. Bug: 1434670 https://source.chromium.org/chromium/chromium/src/+/3381daf526425ad5b99d5678adab03c073531531 commit 3381daf526425ad5b99d5678adab03c073531531 Author: Lily Chen <chlily@chromium.org> Date: Fri Apr 21 12:57:07 2023 +0000 [DownloadBubble] Defer GetDownloadManager() calls This defers calls to GetDownloadManager() to avoid calling it at startup, which may be expensive as it may cause the DownloadManager to be created immediately. These calls were potentially causing large performance regressions in startup time when the download bubble is enabled. This fixes 3 places: 1. DownloadBubbleUpdateService: This CL now splits the initialization of the service, adding a separate function to start listening to the DownloadManager (by creating an AllDownloadItemNotifier) after the DownloadManager is ready. This function is called from DownloadUIController's ctor, which runs immediately after the DownloadManager has been created by DownloadCoreService in GetDownloadManagerDelegate. 2. DownloadBubbleUIController: This CL removes the ctor call to GetDownloadManager() in favor of getting the manager only when needed, i.e. when retrying a download, by which time the manager should be initialized. 3. DownloadDisplayController: This was calling GetDownloadManager() on construction (i.e. startup) completely unnecessarily, to get the DownloadPrefs, which also has a getter based on BrowserContext. Bug: 1421426 --------- Co-authored-by: Simon Hong <shong@brave.com> Co-authored-by: Max Karolinskiy <max@brave.com>
The above requires |
Verified with
|
example | example | example | example |
---|---|---|---|
Safe Browsing
enabled (Standard protection
; default) - PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 minutes and confirmed Safe Browsing was downloaded before proceeding with the rest of the steps
- confirmed
Safe Browsing
was set toStandard Protection
inbrave://settings/security
- loaded
https://www.majorgeeks.com/mg/get/fort_firewall,2.html
- confirmed auto-download save-as-file location-picker dialog (!) came up
- clicked
Save
- confirmed file downloaded without additional warnings
- cleared file
- repeated steps 4-7
Also tried with https://www.audacityteam.org/download/mac/
example | example | example | example |
---|---|---|---|
Blocked downloads
Blocked, Dangerous
- PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 min and confirmed Safe Browsing was downloaded before proceeding
- loaded
https://testsafebrowsing.appspot.com/
- clicked on and saved
https://testsafebrowsing.appspot.com/s/content.exe
Example | Example |
---|---|
Blocked, Uncommon file
- PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 min and confirmed Safe Browsing was downloaded before proceeding
- opened
https://testsafebrowsing.appspot.com
- clicked on and saved
https://testsafebrowsing.appspot.com/s/unknown.exe
Example | Example |
---|---|
Keep
flow - PASSED
Verification
|
example | example | example | example | example | example |
---|---|---|---|---|---|
Safe Browsing
enabled (Standard protection
; default) - PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 minutes and confirmed Safe Browsing was downloaded before proceeding with the rest of the steps
- confirmed
Safe Browsing
was set toStandard Protection
inbrave://settings/security
- loaded
https://www.majorgeeks.com/mg/get/fort_firewall,2.html
- confirmed auto-download save-as-file location-picker dialog (!) came up
- clicked
Save
- confirmed file downloaded without additional warnings
- cleared file
- repeated steps 4-7
example | example | example | example | example |
---|---|---|---|---|
Blocked downloads
Blocked, Dangerous
- PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 min and confirmed Safe Browsing was downloaded before proceeding
- loaded
https://testsafebrowsing.appspot.com/
- clicked on and saved
https://testsafebrowsing.appspot.com/s/content.exe
Example | Example |
---|---|
Blocked, Uncommon file
- PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 min and confirmed Safe Browsing was downloaded before proceeding
- opened
https://testsafebrowsing.appspot.com
- clicked on and saved
https://testsafebrowsing.appspot.com/s/unknown.exe
Example | Example |
---|---|
Keep
flow - PASSED
Verification
|
example | example | example | example |
---|---|---|---|
Safe Browsing enabled (Standard protection
; default) - PASSED
Steps:
- installed
1.52.130
- launched Brave
- waited ~8 minutes and confirmed Safe Browsing downloaded
- loaded
https://www.majorgeeks.com/mg/get/fort_firewall,2.html
- confirmed auto-download file-picker dialog came up
- clicked
Save
- confirmed file download without additional warnings
- cleared file
- repeated steps 4-7
example | example | example | example |
---|---|---|---|
Blocked downloads
Blocked, dangerous - PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 min and confirmed
Safe Browsing
was downloaded before proceeding - loaded
https://testsafebrowsing.appspot.com/
- clicked on and saved
https://testsafebrowsing.appspot.com/s/content.exe
example | example |
---|---|
Blocked, Uncommon file - PASSED
Steps:
- installed
1.52.130
- launched Brave, waited ~8 min and confirmed
Safe Browsing
was downloaded before proceeding - opened
https://testsafebrowsing.appspot.com
- clicked on and saved
https://testsafebrowsing.appspot.com/s/unknown.exe
example | example |
---|---|
Keep flow - PASSED
Description
@simonhong there is an tiny little bug with the Downloads bubble, where if you disable Safe browsing and a 'dangerous' downloaded is blocked, the bubble doesn't popup, and the only way to download the file is by going to downloads page (ctrl+j) and click keep and then keep it anyway.
The easiest way to reproduce this is by creating a new profile, but I noticed it is also affecting my normal profile where I have never had Safe Browsing enabled.
The bug seems to get resolved in normal windows if you click
keep
and thenkeep anyway
, in my test, new downloads are working as expected after doing that, even on restart.Also, it worked fine when I had Safe Browsing on and downloaded a file, and then disabled it.
I guess the problem seems to be bigger for InPrivate windows though, because I noticed that if you download a file and 'fix' the issue by keeping the file, once you close the window and open a new InPrivate window and try to download a 'dangerous' file again, the bubble will not popup until you keep it and keep it anyway again.
Steps to Reproduce
https://www.majorgeeks.com/mg/get/fort_firewall,2.html
Actual result:
Brave version (brave://version info)
1.52.36 Chromium: 112.0.5615.49 (Official Build) nightly (64-bit) - Windows 11 Pro 21H2 22000.1696
The text was updated successfully, but these errors were encountered: