news.volyx.in

Chrome phasing out support for User-Agent (infoq.com)

672 points by oftenwrong · 2388 days ago · 318 comments on HN

Article summary

Google Chrome is phasing out support for User-Agent, replacing it with client hints for more fine-grained control. The User-Agent string will be frozen, with the browser version and OS data unified. This change aims to improve privacy and encourage feature detection instead of browser sniffing. The impact on websites and users is still being discussed.

Main themes

  • User-Agent phaseout
  • Client hints
  • Browser detection
  • Web development practices
  • Privacy
  • Google's influence on the web ecosystem
  • Website compatibility issues

What commenters say

  • Freezing the User-Agent string will break existing websites that rely on it for browser detection.
  • The change will improve privacy and encourage better web development practices, such as feature detection.
  • The removal of User-Agent will give Google too much control over the web ecosystem, allowing them to strongarm other browsers into adopting their changes.
  • Client hints are a better alternative to User-Agent strings, providing more accurate and reliable information about browser capabilities.
  • The web is already breaking due to its complexity and the fight against trackers, and this change will only exacerbate the issue.
  • Developers should use CSS media queries and feature detection instead of relying on User-Agent strings for browser detection and styling.
  • The change will not significantly impact users, as websites can still use client hints and other methods to detect browser capabilities.
  • Google's decision to phase out User-Agent support may be a power move to strengthen their hold on the web ecosystem.