"U; " in UA-string and about:config pref "general.useragent.security" are removed #firefox4
On Firefox 4.0 beta 2, User-agent is shortened as following:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b2) Gecko/20100720 Firefox/4.0b2
On Windows, it will be more short : Mozilla/5.0 (Windows NT 6.1; rv:2.0b2) Gecko/2010???? Firefox/4.0b?
, according to Bug581783
"U;
" and "en;
" are removed.
"en;
" describes localization information.
"U;
" describes security level of the browser.
U | Strong security (Default) the browser provides crypto support that is stronger than what the "international" builds of Netscape offered circa 1995. |
I | Weak security |
N | No security |
Do you know what the "international" builds of Netscape offered circa 1995?
relation to about:config pref
You can change User-Agent token with about:config.
(Note: to replace total User-Agent string, modify general.useragent.override
)
Token Name | Example | about:config pref |
Security level(*) | U | general.useragent.security |
Localization data(**) | en | general.useragent.locale |
Extra data for firefox | Firefox/4.0b2 | general.useragent.extra.firefox |
- (*): Both User-Agent string and about:config pref is removed on Firefox 4.0b2
- (**): User-Agent string is removed on Firefox 4.0b2, about:config pref is still used.
Note that pref "general.useragent.security
" was also removed at Jul 02.
Why Configuration Mania's User-Agent setting does not work on Firefox 4.0b2 even if "Addons"->"Do Not check add-on compatibility" is checked?
An error was occurs whenever the dialog initialized.
Following code on Configuration Mania (version 1.12.2010071001) throws NS_ERROR_UNEXPECTED
since "general.useragent.security"
does not exist on Firefox 4.0b2.
Fixed patch has been pushed on bitbucket's repository.
See also
- User Agent Strings Reference - MDC
- Mozilla's Bugzilla, Bug 572650 - (http-fingerprint) Reduce the amount of data and entropy sent out in HTTP requests
- Mozilla's Bugzilla, Bug 572668 - Remove the crypto strength token from the UA string
- mozilla-central's changeset:22e19fe61752 : Bug 572668. Don't send the useless crypto token in the UA string. r=bzbarsky commited by Saint Wesonga
- Mozilla's Bugzilla, Bug 572656 - Remove the UI language from the UA string and navigator.appVersion
- mozilla-central's changeset:7a07bba40e14 Bug 572656 - Remove the UI language from the UA string and navigator.appVersion. r=bz commited by Dão Gottwald
- Mozilla's Bugzilla, Bug 581783 - Remove "Windows;" from the UA string
- mozilla-central's changeset:35b64ad7910c Bug 581783 - Remove "Windows;" from the UA string. r=bz commited by Dão Gottwald
- IE9 blog, Introducing IE9’s User Agent String, 2010-03-23