question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

software update popups still shown during sparkle update process in certain cases - follow up to 9562

See original GitHub issue

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 https://github.com/brave/brave-browser/issues/9562 to ensure no regressions.

Case 1 - background updates, Admin user - .pkg file - prompt 1
  1. as an Admin, download and install an old version of the appropriate build - I downloaded 1.37.92 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92
  2. launch (I didn’t use any cmd line args, since there are versions on the normal beta channel to upgrade to) —> got update popup immediately
  3. shut down and relaunch —> no update popup now
  4. close browser, advance system time 3+ hours
  5. launch using --enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1 —> get update popup immediately
  6. watch logs, saw mention of an update, but no indication that the update was being downloaded (brave update: did find valid update with AppcastItem(Date: Fri, 18 Mar 2022 00:21:26 +0000, Version: 1.37.97.0))
  7. shut down
  8. launch Brave
  9. check brave://version —> still on 1.37.92, no update was performed —> no update popup
  10. shut down Brave
  11. advance computer clock 3hr again
  12. relaunch brave —> update popup is shown immediately
Screen Shot 2022-03-22 at 2 11 00 PM
Case 2 - background updates, Admin user - .pkg file - prompt 2

Pre-req: make sure the following are gone:

  • previous install of channel (this example uses Beta)
  • previous profile folder (this example would need Brave-Browser-Beta under ~/Library/Application Support/BraveSoftware to be deleted)
  • previous profile folder’s cache (this example would need Brave-Browser-Beta under ~/Library/Caches/BraveSoftware to be deleted)
  • previous profile’s sparkle artifacts removed (this example would need com.brave.Browser.beta under /Users/USERNAME/Library/Preferences to be deleted - see https://bravesoftware.slack.com/archives/C0112349LKB/p1648024034087219?thread_ts=1647649970.484209&cid=C0112349LKB for more information)
  1. as an Admin, download and install an old version of the appropriate build - I downloaded 1.37.92 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92
  2. launch (I didn’t use any cmd line args, since there are versions on the normal beta channel to upgrade to)
  3. shut down and relaunch —> get update prompt 2
prompt2
Case 3 - (continuation of Case 2) - prompt 3

Pre-req: make sure the following are gone:

  • previous install of channel (this example uses Beta)
  • previous profile folder (this example would need Brave-Browser-Beta under ~/Library/Application Support/BraveSoftware to be deleted)
  • previous profile folder’s cache (this example would need Brave-Browser-Beta under ~/Library/Caches/BraveSoftware to be deleted)
  • previous profile’s sparkle artifacts removed (this example would need com.brave.Browser.beta under /Users/USERNAME/Library/Preferences to be deleted - see https://bravesoftware.slack.com/archives/C0112349LKB/p1648024034087219?thread_ts=1647649970.484209&cid=C0112349LKB for more information)
  1. Do Case 2 steps
  2. On the prompt, select Don't check.
  3. Shut down browser.
  4. Advance computer clock 3 hours
  5. launch using --enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
  6. watch logs, no mention of update (as expected per selection in step 4)
  7. Shut down browser.
  8. Relaunch
  9. Go to brave://settings/help to trigger update
  10. Wait for update to be downloaded, then close browser (I didn’t select the relaunch button, I quit the browser entirely)
  11. Get prompt 3
prompt3
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. as an Admin, download and install an old version of the appropriate build - I downloaded 1.37.92 x64 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92
  2. launch using --enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
  3. click on Brave on the top menu bar
  4. click on About Brave (brave://settings/help)
  5. ensure it checks for and downloads an update
  6. click 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.

prompt3
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. as an Admin, download and install an old version of the appropriate build - I downloaded 1.37.92 x64 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.92
  2. open Users & Groups in macOS System Preferences
  3. Add a non-admin user if one does not exist.
  4. log out and log back in as the non admin user
  5. launch Brave using --enable-logging=stderr --vmodule=sparkle_glue=5,brave_relaunch_handler_mac=5 2>&1
  6. Navigate to brave://settings/help in some way
  7. Once update is downloaded, click “Relaunch”
  8. when prompted, grant Admin permissions —> after entering admin permissions, got prompt 2 from below, selected to check automatically
  9. confirm Brave relaunches
  10. confirm update is applied
prompt2
Case 6 - background update, non-admin user - .pkg file - prompt 1
Brave	1.37.104 Chromium: 100.0.4896.46 (Official Build) (x86_64) 
Revision	5ca33821b2211805855c77d334353d27c616a7ca-refs/branch-heads/4896@{#584}
OS	macOS Version 10.15.7 (Build 19H1824)

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. as an Admin, download and install an old version of the appropriate build - I downloaded 1.37.104 x64 .pkg file from https://github.com/brave/brave-browser/releases/tag/v1.37.104
  2. open Users & Groups in macOS System Preferences
  3. Add a non-admin user if one does not exist.
  4. log out and log back in as the non admin user
  5. launch Brave using --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
  6. Open brave://version, shut down browser
  7. advance system time 3+ hours
  8. restart Brave with same command line parameters as step 5 —> get update popup 1 —> Logs show update was found
Case 7 - background update, non-admin user - .dmg file - prompt 1
Brave	1.37.104 Chromium: 100.0.4896.46 (Official Build) (x86_64) 
Revision	5ca33821b2211805855c77d334353d27c616a7ca-refs/branch-heads/4896@{#584}
OS	macOS Version 10.15.7 (Build 19H1824)

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. as an Admin, download and install an old version of the appropriate build - I downloaded 1.37.104 x64 .dmg file from https://github.com/brave/brave-browser/releases/tag/v1.37.104
  2. open Users & Groups in macOS System Preferences
  3. Add a non-admin user if one does not exist.
  4. log out and log back in as the non admin user
  5. launch Brave using --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
  6. Open brave://version, shut down browser
  7. advance system time 3+ hours
  8. restart Brave with same command line parameters as step 5 —> get update popup 1 —> Logs show update was found

Actual result:

Prompt 1 (Case 1,6,7) Prompt 2 (Case 2,5) Prompt 3 (Case 3,4)
Screen Shot 2022-03-22 at 2 11 00 PM prompt2 prompt3

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:

  • Can you reproduce this issue with the current release? 1.36.x yes
  • Can you reproduce this issue with the beta channel? 1.37.x yes
  • Can you reproduce this issue with the nightly channel? 1.38.x yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

cc @stephendonner @kjozwiak @mherrmann @rebron

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mherrmanncommented, Mar 23, 2022

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.

1reaction
rebroncommented, Apr 7, 2022

This is being reverted in 1.39.x: https://github.com/brave/brave-core/pull/12916

We still need people who installed Brave via .pkg to receive update notifications. https://github.com/brave/brave-browser/issues/21813#issuecomment-1079628421

Read more comments on GitHub >

github_iconTop Results From Across the Web

Popups | Sparkle Documentation
Popups add depth and interactivity to your website. Sparkle popups are an open-ended, configurable building block. You can use them to build different...
Read more >
Plex Media Server Version History - VideoHelp
Plex Media Server 1.30.1.6483 is now available to Plex Pass users in the Beta update channel. NEW: (Extras) Improved support for matching TV...
Read more >
How to announce Product Updates (emails, in-app ...
Product updates are an essential part of a sustainable SaaS company. Here's how you can let your existing users know about them, in-...
Read more >
Untitled
Early intervention early childhood special education, Projota muleque doido ... Ikonoklasmus latour, Luxeon ups-500zx, Kookum, Nintendo 3ds system update ...
Read more >
Untitled
UPDATE FROM SELECTBOARD LIASON<br /> 5. DISCUSSION AND RECOMMENDATION OF STM WARRANT ARTICLES<br /> 6. MEMBER FOR AD HOC COMMITTEE ON EFFICIENCES<br />...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found