-
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
software update popups still shown during sparkle update process in certain cases - follow up to 9562 #21813
Comments
Thank you for catching this @LaurenWags. I have a hunch for the reason and would like to ask what you think. Could it be that on the machine where you performed the test, you previously got the following popup, and accepted it with "Check automatically"? My suspicion is that this setting got remembered and you're still seeing the update popup because of this. It would be a bug either way but I'd have a better idea for a fix. Thanks! |
@mherrmann it's a pretty old machine so while that popup doesn't stand out in my mind, it's possible! if it helps, it was a completely clean install of Beta, not an upgrade of an existing profile/install. If there's a way I can check on your question let me know - happy to provide more information if I can! |
Thank you @LaurenWags, I don't think there's a way to check on my question. But your reply already helps. I'm beginning work on a fix. |
I want to give some explanation on this issue (cc @LaurenWags @stephendonner @rebron). In #9562, we encountered the question what should happen when Brave tries to update itself but can't due to lacking permissions. The classic case is when Brave was installed as Admin (eg. in In implementing the fix for #9562, I missed a small case. This lead to #21802, which affects Brave's I found out why that is the case: When Brave is installed with the My fix brave/brave-core#12713 now prevents the unwanted update popups in the remaining cases. (At least in my tests.) But I wanted to give the above background info to highlight that a consequence of the decision made in #9562 is that people who installed Brave via |
This is being reverted in 1.39.x: brave/brave-core#12916 We still need people who installed Brave via |
Description
Follow up to #9562
While testing above issue, found that I'm still getting the update popup in some cases, probably specific to using .pkg instead of .dmg.
Steps to Reproduce
As a general note, these were recorded using Catalina (Intel), but also occurred using Monterey (M1). Generally when retesting I think we should probably cover all previous checks from #9562 to ensure no regressions.
Case 1 - background updates, Admin user - .pkg file - prompt 1
1.37.92
.pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92---> got update popup immediately
---> no update popup now
--enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
---> get update popup immediately
brave update: did find valid update with AppcastItem(Date: Fri, 18 Mar 2022 00:21:26 +0000, Version: 1.37.97.0)
)brave://version
---> still on 1.37.92, no update was performed
---> no update popup
---> update popup is shown immediately
Case 2 - background updates, Admin user - .pkg file - prompt 2
Pre-req: make sure the following are gone:
1.37.92
.pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92---> get update prompt 2
Case 3 - (continuation of Case 2) - prompt 3
Pre-req: make sure the following are gone:
Don't check
.--enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
Case 4 - update from brave://settings/help, Admin user - .pkg file - prompt 3
Remove as many Brave artifacts from previous installations as possible (.app from Applications, profile folder from Application Support/BraveSoftware, corresponding ache folder from Caches/BraveSoftware, com.brave.Browser.* folder from Caches, com.brave.Browser.* from Caches/Preferences)
1.37.92
x64 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92--enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
About Brave
(brave://settings/help
)Relaunch
---> get prompt 3 pictured below
---> if I enter credentials, browser is updated. If I select cancel, browser is not updated.
Note, this also happens on 1.36.x but with additional update prompts (prompt 1), so this is better than it was previously.
Case 5 - allow update from brave://settings/help, non-admin user - .pkg file - prompt 2
Remove as many Brave artifacts from previous installations as possible (.app from Applications, profile folder from Application Support/BraveSoftware, corresponding ache folder from Caches/BraveSoftware, com.brave.Browser.* folder from Caches, com.brave.Browser.* from Caches/Preferences)
1.37.92
x64 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92Users & Groups
in macOSSystem Preferences
--enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
---> after entering admin permissions, got prompt 2 from below, selected to check automatically
Case 6 - background update, non-admin user - .pkg file - prompt 1
Remove as many Brave artifacts from previous installations as possible (.app from Applications, profile folder from Application Support/BraveSoftware, corresponding ache folder from Caches/BraveSoftware, com.brave.Browser.* folder from Caches, com.brave.Browser.* from Caches/Preferences)
1.37.104
x64 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.104Users & Groups
in macOSSystem Preferences
--enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1 --update-feed-url=https://updates.bravesoftware.com/sparkle/Brave-Browser/test/appcast.xml
---> get update popup 1
---> Logs show update was found
Case 7 - background update, non-admin user - .dmg file - prompt 1
Remove as many Brave artifacts from previous installations as possible (.app from Applications, profile folder from Application Support/BraveSoftware, corresponding ache folder from Caches/BraveSoftware, com.brave.Browser.* folder from Caches, com.brave.Browser.* from Caches/Preferences)
1.37.104
x64 .dmg file from https://github.com/brave/brave-browser/releases/tag/v1.37.104Users & Groups
in macOSSystem Preferences
--enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1 --update-feed-url=https://updates.bravesoftware.com/sparkle/Brave-Browser/test/appcast.xml
---> get update popup 1
---> Logs show update was found
Actual result:
Expected result:
no software update popup in any case
Reproduces how often:
100%
Brave version (brave://version info)
1.37.92 (need to use .pkg file not .dmg)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
cc @stephendonner @kjozwiak @mherrmann @rebron
The text was updated successfully, but these errors were encountered: