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

Discussion about official Mozilla Firefox builds
Post Reply
User avatar
kmc
Posts: 332
Joined: October 19th, 2007, 3:01 am
Location: China

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

Post by kmc »

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
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

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

Post by Bluefang »

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...
User avatar
kmc
Posts: 332
Joined: October 19th, 2007, 3:01 am
Location: China

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

Post by kmc »

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
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

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

Post by Bluefang »

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...
User avatar
kmc
Posts: 332
Joined: October 19th, 2007, 3:01 am
Location: China

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

Post by kmc »

Thanks Bluefang.
Growing up with Firefox
User avatar
Tony-E
Posts: 8778
Joined: November 5th, 2004, 11:28 am

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

Post by Tony-E »

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

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

Post by pal-moz »

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
User avatar
Bluefang
Posts: 7857
Joined: August 10th, 2005, 2:55 pm
Location: Vermont
Contact:

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

Post by Bluefang »

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

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

Post by pal-moz »

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