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

Brave returning wrong OS version for MacOS #32850

Closed
ibeckermayer opened this issue Sep 7, 2023 · 5 comments · Fixed by brave/brave-core#20136
Closed

Brave returning wrong OS version for MacOS #32850

ibeckermayer opened this issue Sep 7, 2023 · 5 comments · Fixed by brave/brave-core#20136
Assignees
Labels
bug griffin OS/Desktop OS/macOS priority/P2 A bad problem. We might uplift this to the next planned release. QA/No release-notes/exclude

Comments

@ibeckermayer
Copy link

Description

The browser appears to be returning the wrong OS version, causing problems with Duo.

Steps to Reproduce

  1. Attempt to authenticate with Duo with a certain minimum OS version requirement
  2. Get "macOS update required. Your operating system needs to be updated before you can log in." despite running the latest version of macOS.

Actual result:

image

Expected result:

I should be able to follow through with login.

Reproduces how often:

Every time

Brave version (brave://version info)

Brave 1.56.20 Chromium: 115.0.5790.171 (Official Build) (arm64)
Revision cf9067bf10d8f798c24643029af1d24e275646d6-refs/branch-heads/5790@{#1924}
OS macOS Version 13.5.1 (Build 22G90)

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel? Didn't check
  • Can you reproduce this issue with the nightly channel? Didn't check

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? Yes
  • Does the issue resolve itself when disabling Brave Rewards? Didn't check
  • Is the issue reproducible on the latest version of Chrome? No, Chrome works fine.

Miscellaneous Information:

Unfortunately I'm not sure how Duo is determining this information. navigator.platform and navigator.userAgent are returning the same things for me in both Chrome and Brave.

@rebron rebron added OS/macOS bug needs-investigation A bug not 100% confirmed/fixed labels Sep 8, 2023
@pilgrim-brave
Copy link

Investigated this, and it is something we are doing intentionally. brave/brave-core#18154 added a "clamp" on navigator.userAgentData platformVersion so the third value is always 0. (For example, current Mac OS version is 13.5.2, but Brave intentionally returns 13.5.0.)

@mkarolin
Copy link
Contributor

mkarolin commented Sep 8, 2023

@ibeckermayer, could you, please, try going to brave://flags, searching for clamp-platform-version-client-hint and switching it to Disabled, then relaunching the browser and authenticating with Duo?

@ibeckermayer
Copy link
Author

@mkarolin yes: that solves it.

@rebron rebron added priority/P2 A bad problem. We might uplift this to the next planned release. griffin labels Sep 14, 2023
@brave-builds brave-builds added this to the 1.60.x - Nightly milestone Sep 19, 2023
@mkarolin
Copy link
Contributor

Fixed via Griffin and brave/brave-core#20136

@mkarolin
Copy link
Contributor

Marked as QA/No because Griffin change has already been tested by @kjozwiak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug griffin OS/Desktop OS/macOS priority/P2 A bad problem. We might uplift this to the next planned release. QA/No release-notes/exclude
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants