Jump to content
  • Mozilla tests if 'Firefox/100.0' user agent breaks websites


    Karlston

    • 429 views
    • 4 minutes
     Share


    • 429 views
    • 4 minutes

    Mozilla has launched an experiment where they change the Firefox browser user agent to a three-digit "Firefox/100.0" version to see if it will break websites.

     

    A user agent is a string used by a web browser that includes information about the software, including its name, version, and technologies that it uses.

     

    When a new version of a browser is released, the developers also increment the version number in the user agent string.

     

    For example, the current user agent for Mozilla Firefox version 90 is listed below.

    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0

    Note, if you have the Firefox 'privacy.resistFingerprinting' setting set to 'True,' your user agent will be locked to 'Firefox/78.0.'

     

    For Google Chrome 92, the current user agent is:

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

    When visiting a website, the user agent strings are sent to a website so that the site knows the software capabilities of the visitor. This information allows the website to modify its response to account for different features of browsers.

    Testing whether Firefox 100 user agent breaks websites

    As Firefox version numbers are currently two digits, Mozilla developers are investigating if anything breaks when they release Firefox Nightly version 100 in March 2022.

     

    "We would like to run an experiment to test whether a UA string with a three-digit Firefox version number will break many sites," Mozilla Staff Engineering Program Manager Chris Peterson said in a bug post first spotted by Techdows.

     

    "This new temporary general.useragent.experiment.firefoxVersion pref can override the UA string's Firefox version."

     

    When conducting the test, a enrolled Firefox user will have their user agent changed to the following string with the hopes that if anything breaks, they will report it to Mozilla.

    Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0

    Peterson said he has been testing using the browser with a "Firefox/100.0" user agent string for about four months and has only encountered an issue when using Slack.

     

    "I discovered Slack's message popup menu's buttons (such as "Add reaction" or "Reply in thread") stop working for Firefox versions >= 100 and = 520," explained Peterson.

     

    In this case, the issue appears to be a bug with Slack comparing the version numbers are strings rather than numbers (integers). While Slack quickly fixed this issue, it illustrates how simple coding errors can produce unexpected results when the user agent changes to version 100.

     

    If continued tests show that many sites are broken by the new user agent, Firefox is may freeze the user agent to a two-digit number like "Firefox/99.0."

     

    For those who wish to test the upcoming user agent change on their own sites or sites they frequently visit, you can manually change your user agent string using these steps:

     

    1. Open Firefox, enter about:config in the address bar, and press enter.
    2. Search for general.useragent.override.
    3. When it appears, select 'String' and then click on the plus (+) sign, as shown in the image below.

       

      firefox-add-setting.jpg

      Adding the general.useragent.override setting
    4. After clicking on the + icon, a field should open where you should enter the text: Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0 as shown below.

       

      configured-user-agent-setting.jpg

      Configured Firefox 100 user agent
    5. Then click on the checkmark button to save the setting.
    6. You can close the about:config tab.

     

    While this setting is in place, the browser will send the new user agent string to websites. If you run into any issues with the websites you visit, you should create a new bug report for Mozilla.

     

    To change your user agent back to its original string, simply go back into about:config and search for general.useragent.override setting again. 

     

    When it appears, click on the trash can icon to delete the configured setting.

     

    Mozilla tests if 'Firefox/100.0' user agent breaks websites


    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...