← Back to release summary

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

Ecosystem

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

View on chromestatus.com