Closed Bug 1748798 Opened 4 months ago Closed 4 months ago

Create an about:config pref to set the user agent string to 100. true/false

Categories

(Web Compatibility :: Tooling & Investigations, task, P3)

Tracking

(firefox-esr91 wontfix, firefox95 wontfix, firefox96 wontfix, firefox97 wontfix, firefox98 fixed)

RESOLVED FIXED
Tracking Status
firefox-esr91 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- wontfix
firefox98 --- fixed

People

(Reporter: karlcow, Assigned: cpeterson)

References

Details

Attachments

(3 files, 1 obsolete file)

(based on a proposal by Chris Peterson)

To help devs test their website with version/100, we should probably give an about:config pref to flip and set version 100

Chrome has a setting UI in chrome://flags/#force-major-version-to-100

Some risks:

  • What is happening if the person has already manually changed the UA string?
  • What is happening if the person has used an addon for changing the UA string?

Some thoughts

  • When Firefox actually reached 100, we need to remove the feature. So we could open a second bug to remove it.

Other possibilities

  • Specific Addon to install
  • add a "Test Firefox Version 100" checkbox to Firefox Nightly's "Experiments" settings? about:preferences#experimental (proposed also by Chris)

I have a patch.

Assignee: nobody → cpeterson
Severity: -- → N/A
Type: defect → task
Priority: -- → P3

This pref makes Firefox send websites a User-Agent string that pretends to be Firefox version 100. Web developers can use this setting to test whether websites will break when Firefox hits a three-digit version number. The real Firefox 100 is scheduled to be released in May 2022.

Chrome has a similar chrome://flags/#force-major-version-to-100 flag for testing a Chrome 100 UA.

This pref makes Firefox send websites a User-Agent string that pretends to be Firefox version 100. Web developers can use this setting to test whether websites will break when Firefox hits a three-digit version number. The real Firefox 100 is scheduled to be released in May 2022.

Chrome has a similar chrome://flags/#force-major-version-to-100 flag for testing a Chrome 100 UA.

Depends on D135315

Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b95bd8f3f5d4
Hard code experiment version 100 and add Android UA. r=necko-reviewers,valentin
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/509c128c5d15
Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r=preferences-reviewers,necko-reviewers,Gijs,valentin
https://hg.mozilla.org/integration/autoland/rev/98b4a50ae8a2
Add 'Firefox 100 User-Agent String' to the Nightly Experiments settings. r=jaws,flod
Backout by mlaza@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/4dfa6c06a936
Backed out 3 changesets for causing bc test failures on browser_navigator.js. a=backout

Backed out 3 changesets (Bug 1748798) for causing bc test failures on browser_navigator.js.
Backout link
Push with failures
Failure Log

Flags: needinfo?(cpeterson)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #9261025 - Attachment is obsolete: true
Attachment #9260338 - Attachment description: Bug 1748798 - Hard code experiment version 100 and add Android UA. r?#necko-reviewers → Bug 1748798 - Hard code experiment version 100 and add Android UA. r?#necko-reviewers,valentin
Attachment #9257979 - Attachment description: Bug 1748798 - Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r?#necko-reviewers!,#preferences-reviewers → Bug 1748798 - Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r?#necko-reviewers!,#preferences-reviewers,Gijs,valentin
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/feafc0bb87bd
Hard code experiment version 100 and add Android UA. r=necko-reviewers,valentin
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4a90f3296ec3
Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r=preferences-reviewers,necko-reviewers,Gijs,valentin
https://hg.mozilla.org/integration/autoland/rev/15922d565b29
Add 'Firefox 100 User-Agent String' to the Nightly Experiments settings. r=jaws,flod

Backed out for causing mochitest failures on browser_navigator.js

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/resistfingerprinting/test/browser/browser_navigator.js | Checking forceVersion100 navigator.userAgent. - Got "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0", expected "Mozilla/5.0 (Windows NT 6.1; rv:100.0) Gecko/20100101 Firefox/100.0"
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/68668619bf9a
Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r=preferences-reviewers,necko-reviewers,Gijs,valentin
https://hg.mozilla.org/integration/autoland/rev/18d5cb739f09
Add 'Firefox 100 User-Agent String' to the Nightly Experiments settings. r=jaws,flod
Status: REOPENED → RESOLVED
Closed: 4 months ago4 months ago
Resolution: --- → FIXED
See Also: → 1753805
Depends on: 1731523
You need to log in before you can comment on or make changes to this bug.