Skip to content
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

set macOS minimum version to 10.13 for 1.42.x in Sparkle #23748

Closed
rebron opened this issue Jun 28, 2022 · 11 comments
Closed

set macOS minimum version to 10.13 for 1.42.x in Sparkle #23748

rebron opened this issue Jun 28, 2022 · 11 comments

Comments

@rebron
Copy link
Collaborator

rebron commented Jun 28, 2022

Description

Brave 1.42.x with Chromium 104 will require macOS 10.13 High Sierra and higher.
Those with Brave 1.41.x and 10.12 (Sierra) and 10.11 (El Capitan) or lower should not be prompted with an update to 1.42.x

Steps to Reproduce

  1. Run 10.12 Sierra or lower with 1.41.x installed.
  2. Should not be prompted to update when 1.42.x is made available.

Reproduces how often:

Brave version (brave://version info)

1.41.x with macOS 10.12 Sierra and lower.

Version/Channel Information:

  • Can you reproduce this issue with the current release? n/a
  • Can you reproduce this issue with the beta channel? n/a
  • Can you reproduce this issue with the nightly channel? n/a

Other Additional Information:

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

Miscellaneous Information:

@rebron
Copy link
Collaborator Author

rebron commented Jun 28, 2022

cc: @mihaiplesa @simonhong @mherrmann

@rebron
Copy link
Collaborator Author

rebron commented Jun 28, 2022

@simonhong
Copy link
Member

simonhong commented Jun 29, 2022

@mherrmann @mihaiplesa How about handling this via brave::UpdateEnabled() - https://github.com/brave/brave-core/blob/master/browser/update_util.cc like below?

bool UpdateEnabled() {
#if defined(OFFICIAL_BUILD)
 // Check brave & macOS version and return false here?

  return !base::CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kDisableBraveUpdate);
#else
  return false;
#endif
}

Or this could be done more easily from server side?

@mherrmann
Copy link

I think we already implemented this in #22918. See minimumSystemVersion in https://updates.bravesoftware.com/sparkle/Brave-Browser/stable/appcast.xml. There, Sparkle versions are marked with the minimum required macOS version. If a user tries to update from a lower macOS version, then they won't be prompted. The code that sets minimumSystemVersion to the correct value for a release is in https://github.com/brave/devops/pull/7544/files.

@rebron
Copy link
Collaborator Author

rebron commented Jul 12, 2022

cc: @mherrmann @mkarolin We want to do this before CR 104 merges into nightly so we can test in nightly and beta.

@mihaiplesa
Copy link
Contributor

@rebron this is in since 1.39.x.

@mherrmann
Copy link

mherrmann commented Jul 19, 2022

I believe we can close this issue once cr104 is in nightly and "10.13" appears in https://updates.bravesoftware.com/sparkle/Brave-Browser/nightly/appcast.xml. (It should automatically appear there with the current implementation. This would be a final test whether that's the case.)

@kjozwiak
Copy link
Member

Quick update on the clean install cases, went through #24199 (comment) and ensured that the C104 executable warned the user with while they were installing. Also ensured that you can't launch Brave once installed. Also ensured that you can install it without any issues via High Sierra.

@mihaiplesa
Copy link
Contributor

Went and purged old updates that didn't have a minimum version set in Omaha, we're good to close now. Newer versions specify the minimum system version.

@kjozwiak
Copy link
Member

kjozwiak commented Jul 29, 2022

OS X 10.11 El Captain Test Cases

Nightly channel

Verification PASSED on OS X 10.11 El Captain x64 using the following build(s):

Brave | 1.43.42 Chromium: 103.0.5060.134 (Official Build) nightly (x86_64)
--- | ---
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | OS X Version 10.11.6 (Build 15G22010)
  • downloaded/installed 1.43.42 Chromium: 103.0.5060.134 which is on C103
  • ensured that the warning notification appears on first launch re: needing macOS 10.13 or higher
  • loaded brave://settings/help and ensured that the browser wasn't installed
  • ensured that there's a warning re: needing macOS 10.13 (basically the same message as per the notification at startup)
  • ensured that clicking on Learn More opens the following URL in a new tab
    • https://support.brave.com/hc/en-us/articles/360025390311-How-do-I-download-and-install-Brave-
Example Example
Screen Shot 2022-07-29 at 1 13 30 AM Screen Shot 2022-07-29 at 1 13 51 AM

BETA channel

Verification PASSED on OS X10.11 El Captain x64 using the following build(s):

Brave | 1.42.78 Chromium: 103.0.5060.134 (Official Build) beta (x86_64)
--- | ---
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | OS X Version 10.11.6 (Build 15G22010)
  • downloaded/installed 1.42.78 Chromium: 103.0.5060.134 which is on C103
  • ensured that the warning notification appears on first launch re: needing macOS 10.13 or higher
  • loaded brave://settings/help and ensured that the browser wasn't installed
  • ensured that there's a warning re: needing macOS 10.13 (basically the same message as per the notification at startup)
  • ensured that clicking on Learn More opens the following URL in a new tab
    • https://support.brave.com/hc/en-us/articles/360025390311-How-do-I-download-and-install-Brave-
Example Example
Screen Shot 2022-07-29 at 1 20 15 AM Screen Shot 2022-07-29 at 1 20 41 AM

Release channel

Verification PASSED on OS X10.11 El Captain x64 using the following build(s):

Brave | 1.41.100 Chromium: 103.0.5060.134 (Official Build) (x86_64)
--- | ---
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | OS X Version 10.11.6 (Build 15G22010)

Launched using the following before going through the STR/Cases:

--update-feed-url=https://updates.bravesoftware.com/sparkle/Brave-Browser/beta/appcast.xml
  • downloaded/installed 1.41.100 Chromium: 103.0.5060.134 which is on C103
  • ensured that the warning notification appears on first launch re: needing macOS 10.13 or higher
  • loaded brave://settings/help and ensured that the browser wasn't installed
  • ensured that there's a warning re: needing macOS 10.13 (basically the same message as per the notification at startup)
  • ensured that clicking on Learn More opens the following URL in a new tab
    • https://support.brave.com/hc/en-us/articles/360025390311-How-do-I-download-and-install-Brave-
Example Example
Screen Shot 2022-07-29 at 1 28 06 AM Screen Shot 2022-07-29 at 1 28 21 AM

macOS 10.12 Sierra Test Cases

Nightly channel

Verification PASSED on macOS 10.12 Sierra x64 using the following build(s):

Brave | 1.43.42 Chromium: 103.0.5060.134 (Official Build) nightly (x86_64)
--- | ---
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | macOS Version 10.12.6 (Build 16G2136)
  • downloaded/installed 1.43.42 Chromium: 103.0.5060.134 which is on C103
  • ensured that the warning notification appears on first launch re: needing macOS 10.13 or higher
  • loaded brave://settings/help and ensured that the browser wasn't installed
  • ensured that there's a warning re: needing macOS 10.13 (basically the same message as per the notification at startup)
  • ensured that clicking on Learn More opens the following URL in a new tab
    • https://support.brave.com/hc/en-us/articles/360025390311-How-do-I-download-and-install-Brave-
Example Example
Screen Shot 2022-07-29 at 12 45 16 AM Screen Shot 2022-07-29 at 12 46 28 AM

BETA channel

Verification PASSED on macOS 10.12 Sierra x64 using the following build(s):

Brave | 1.42.78 Chromium: 103.0.5060.134 (Official Build) beta (x86_64)
--- | ---
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | macOS Version 10.12.6 (Build 16G2136)
  • downloaded/installed 1.42.78 Chromium: 103.0.5060.134 which is on C103
  • ensured that the warning notification appears on first launch re: needing macOS 10.13 or higher
  • loaded brave://settings/help and ensured that the browser wasn't installed
  • ensured that there's a warning re: needing macOS 10.13 (basically the same message as per the notification at startup)
  • ensured that clicking on Learn More opens the following URL in a new tab
    • https://support.brave.com/hc/en-us/articles/360025390311-How-do-I-download-and-install-Brave-
Example Example
Screen Shot 2022-07-29 at 12 58 03 AM Screen Shot 2022-07-29 at 12 58 23 AM

Release channel

Verification PASSED on macOS 10.12 Sierra x64 using the following build(s):

Brave | 1.41.100 Chromium: 103.0.5060.134 (Official Build) (x86_64)
--- | ---
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | macOS Version 10.12.6 (Build 16G2136)

Launched using the following before going through the STR/Cases:

--update-feed-url=https://updates.bravesoftware.com/sparkle/Brave-Browser/beta/appcast.xml
  • downloaded/installed 1.41.100 Chromium: 103.0.5060.134 which is on C103
  • ensured that the warning notification appears on first launch re: needing macOS 10.13 or higher
  • loaded brave://settings/help and ensured that the browser wasn't installed
  • ensured that there's a warning re: needing macOS 10.13 (basically the same message as per the notification at startup)
  • ensured that clicking on Learn More opens the following URL in a new tab
    • https://support.brave.com/hc/en-us/articles/360025390311-How-do-I-download-and-install-Brave-
Example Example
Screen Shot 2022-07-29 at 1 06 46 AM Screen Shot 2022-07-29 at 1 07 03 AM

@LaurenWags
Copy link
Member

Using 10.13.6 High Sierra (VM), double checked able to:

  • Install 1.41.100 Chromium: 103.0.5060.134 and upgrade to 1.42.84 Chromium: 104.0.5112.69. Closed and relaunched several times.
  • Install 1.42.84 Chromium: 104.0.5112.69. Closed and relaunched several times.
Brave	1.42.84 Chromium: 104.0.5112.69 (Official Build) (x86_64) 
Revision	7ce2902023c722af8564068e6b26e934b83fd774-refs/branch-heads/5112@{#1213}
OS	macOS Version 10.13.6 (Build 17G66)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants