User Agent string: cap macOS version number to 10_15_7
- Category
- Miscellaneous
- Type
- No developer-visible change
- Status
- No active development (Chrome No active development)
- Intent stage
- Prepare to ship
WPT details: Have not investigated adding web platform tests for this change, as such a test would only be able to run on macOS 11 and later, would have to use internal functions in the test harness to verify that the host machine is running this OS version, and would then have to assert that the OS version number exposed in the UA string is no greater than 10_15_7.
Summary
In the user agent string on macOS, cap the reported OS version number to 10_15_7. Mozilla's Firefox team and Apple's Safari team have encountered a long tail of broken web content when the user agent string reports "Mac OS X 11_0_0" - basically, any macOS major version greater than 10. Per http://crbug.com/1175225 , both browsers have capped the reported macOS version to 10_15_7 to both work around this, and also slightly increase user privacy. We would like Chrome to follow this precedent.
Motivation
Mozilla's Firefox team and Apple's Safari team have encountered a long tail of broken web content when the user agent string reports "Mac OS X 11_0_0" - basically, any macOS major version greater than 10. Per http://crbug.com/1175225 , both browsers have capped the reported macOS version to 10_15_7 to both work around this, and also slightly increase user privacy. We would like Chrome to follow this precedent.
Standards & signals
- Specification: https://bugs.chromium.org/p/chromium/issues/detail?id=1175225
- Firefox: Shipped/Shipping
- Safari: Shipped/Shipping
- Web developers: Positive — Unity, as one example, would prefer to see a browser-side change for this purpose, as cited in the above bug comment. Other web developers' feedback can be found on issues linked to those provided from Firefox's and WebKit's issue trackers.
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1175225
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=user-agent-string-cap-macos-version-number-to-10-15-7
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+User%20Agent%20string%3A%20cap%20macOS%20version%20number%20to%2010_15_7
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=User%20Agent%20string%3A%20cap%20macOS%20version%20number%20to%2010_15_7
- Baseline status: https://webstatus.dev/?q=User%20Agent%20string%3A%20cap%20macOS%20version%20number%20to%2010_15_7
Docs: https://bugs.chromium.org/p/chromium/issues/detail?id=1175225
Samples: https://bugs.chromium.org/p/chromium/issues/detail?id=1171998
Explainers: https://bugs.chromium.org/p/chromium/issues/detail?id=1175225