v151 · Browser · Deprecation Demo

Deprecation Demo

Reads platform and OS version via User-Agent Client Hints and evaluates whether this machine meets Chrome 151's minimum macOS requirement (macOS 13 Ventura or later).

High-entropy UA-CH values require a permission prompt in some contexts. The demo requests platformVersion which is needed to determine the macOS major version.

platform check

UA-CH supported—
Platform—
Platform version—
macOS major version—
Chrome 151 support status—

synthetic platformVersion check

Windows and Linux expose different platformVersion shapes, so they should not be parsed as macOS versions. Pick a sample to see the same branching logic without needing a macOS 12 device.

Sample platform—
Sample version shape—
Sample verdict—

macOS version reference

// macOS version number → marketing name
const macosNames = {
  '10': 'macOS 10.x (≤ Catalina — Chrome dropped support in Chrome 131)',
  '11': 'macOS 11 Big Sur — Chrome dropped support in Chrome 140',
  '12': 'macOS 12 Monterey — Chrome drops support in Chrome 151',
  '13': 'macOS 13 Ventura — supported',
  '14': 'macOS 14 Sonoma — supported',
  '15': 'macOS 15 Sequoia — supported',
};

// platformVersion on macOS returns the macOS version string,
// e.g. '12.7.4' for Monterey, '13.6.1' for Ventura.
// Major version is the first segment.

async function checkSupport() {
  const hints = await navigator.userAgentData.getHighEntropyValues([
    'platform',
    'platformVersion',
  ]);
  if (hints.platform !== 'macOS') return 'Not macOS — not affected';
  const major = parseInt(hints.platformVersion.split('.')[0], 10);
  return major >= 13
    ? `macOS ${major} — supported by Chrome 151`
    : `macOS ${major} — NO LONGER supported from Chrome 151`;
}

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗