MozillaZine

"general.useragent.extra.*" no longer used?

Discussion about official Mozilla Firefox builds
kmc

User avatar
 
Posts: 332
Joined: October 19th, 2007, 3:01 am
Location: China

Post Posted September 18th, 2010, 11:01 am

I've read from here that
Starting with Mozilla 1.8 beta2, the best way for applications, vendors, and extensions (if needed) to add to default preferences to add VendorProductTokens or VendorComments is to add a default preference of the form general.useragent.extra.identifier. All of the general.useragent.extra.* preferences will have their string values added to the User-Agent string in alphabetical order by identifier. For example:

pref("general.useragent.extra.megabrowser", "MegaCorpBrowser/1.0 (MegaCorp, Inc.)");
pref("general.useragent.extra.tinydistro", "TinyDistroLinux/2.3");


However, I've tried it and it doesn't work. Has it been removed?

Thanks.
Growing up with Firefox

Bluefang

User avatar
 
Posts: 7856
Joined: August 10th, 2005, 2:55 pm
Location: Vermont

Post Posted September 18th, 2010, 11:18 am

There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...

kmc

User avatar
 
Posts: 332
Joined: October 19th, 2007, 3:01 am
Location: China

Post Posted September 18th, 2010, 12:54 pm

So, I want to have something more specific in my UA like
Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100918 Firefox/4.0b7pre 20100918052622

it's no longer possible?
Growing up with Firefox

Bluefang

User avatar
 
Posts: 7856
Joined: August 10th, 2005, 2:55 pm
Location: Vermont

Post Posted September 18th, 2010, 1:28 pm

Not unless you completely override it using general.useragent.override or User Agent Switcher.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...

kmc

User avatar
 
Posts: 332
Joined: October 19th, 2007, 3:01 am
Location: China

Post Posted September 18th, 2010, 1:42 pm

Thanks Bluefang.
Growing up with Firefox

Tony-E

User avatar
 
Posts: 8753
Joined: November 5th, 2004, 11:28 am

Post Posted September 18th, 2010, 1:46 pm

The general.useragent.override preference may be made temporary or even removed. A final decision does not yet appear to have been made yet, but see these bug reports.
Bug 582421 – Make general.useragent.override temporary
Bug 589361 – Allow UA string changes by API call only

pal-moz
 
Posts: 5937
Joined: September 23rd, 2005, 5:40 pm
Location: Tokyo , Japan

Post Posted September 18th, 2010, 2:58 pm

kmc wrote:So, I want to have something more specific in my UA like
Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100918 Firefox/4.0b7pre 20100918052622

it's no longer possible?


if you want to add Build ID, use Nightly Tester Tools.

[normal UA]
Mozilla/5.0 (Windows NT 6.1; rv:2.0b6pre) Gecko/20100913 Firefox/4.0b6pre

[UA with NTT]
Mozilla/5.0 (Windows NT 6.1; rv:2.0b6pre) Gecko/20100913 Firefox/4.0b6pre ID:20100913041656
[Desktop] Windows 7 Professional (32bit/SP1) / Geforce GTX 660Ti 2GB (350.12) / 4GB RAM

Bluefang

User avatar
 
Posts: 7856
Joined: August 10th, 2005, 2:55 pm
Location: Vermont

Post Posted September 18th, 2010, 4:16 pm

AFAIK NTT doesn't change the UAID. It just adds the build id to the title bar.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...

pal-moz
 
Posts: 5937
Joined: September 23rd, 2005, 5:40 pm
Location: Tokyo , Japan

Post Posted September 18th, 2010, 4:27 pm

misreading #-o
[Desktop] Windows 7 Professional (32bit/SP1) / Geforce GTX 660Ti 2GB (350.12) / 4GB RAM

Return to Firefox Builds


Who is online

Users browsing this forum: No registered users and 2 guests