Jump to content
  • Google tests if 'Chrome/100.0' user agent breaks websites

    Karlston

    • 497 views
    • 3 minutes
     Share


    • 497 views
    • 3 minutes

    Google is testing whether changing the Chrome user agent to three-digit 'Chrome/100' will cause loss of functionality on websites that are expecting a two digit version number.

     

    A user agent is a string sent by a web browser to a website to let the site know what browser the visitor is using, its version, and integrated technology.

     

    When a new version of a browser, such as Google Chrome, is released, the developers will increment the version number in a user agent string.

     

    For example, the user agent for Google Chrome version 93 is:

    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36

    While for the current version, Chrome 94, it is:

    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36

    As you can see, the Chrome version number in the user agent string is incremented to match the browser's version number.

     

    By sending the browser user agent to a website, it allows site developers to change a site or app's functionality to accommodate various browser quirks, features, and abilities.

    Testing if Chrome 100 user agent breaks websites

    As Google Chrome version numbers are currently two digits, Chrome engineers are investigating whether any site, or its functionality, breaks when Chrome 100 is released in March 2022.

     

    "To avoid any UA string breakage when Chrome ships v100, we should add a flag to chrome://flags which flips the current major version to 100 in the User-Agent string as well as navigator.userAgent," Google Chrome engineer Mike Taylor explains in a bug post first spotted by Techdows.

     

    When conducting the test, Chrome users will have their user agent changed to the following string with the hopes that if anything breaks, they will report it to Google.

    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4651.0 Safari/537.36

    A similar test was conducted by Mozilla in August 2021 where the Firefox user agent was changed to "Firefox/100.0" user agent.

     

    For the most part, there have not been too many issues, with only a few sites stating the browser is unsupported or problems with the functionality of the site.

     

    Slack's web interface also showed some problems with popup menu buttons, but was quickly fixed by the Slack developers.

     

    To test the Google Chrome 100 user agent on your own sites or sites you visit, you can enable this test using the following steps:

     

    1. Open Google Chrome Canary, enter chrome://flags in the address bar, and press enter.
    2. Search for Force major version to 100 in User-Agent in the search field, and when the option appears, enable it as shown below.

       

      chrome-flag.jpg

      Adding the general.useragent.override setting
    3. When prompted to relaunch the browser, please do so.
    4. Once the browser is opened again, you can close the chrome://flags screen.

     

    Now that this setting is enabled, when you visit web page it will send a user agent indicating that the browser is Chrome 100.

     

    To change Chrome's user agent back to its default, simply follow this process and change the flag's setting to Default and relaunch the browser again.

     

     

    Google tests if 'Chrome/100.0' user agent breaks websites

    • Like 2

    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...