nsContentHTTPStartup overrides preferences

RESOLVED FIXED

Status

defect
--
minor
RESOLVED FIXED
13 years ago
Last year

People

(Reporter: glandium, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.8.0.1) Gecko/20060313 Debian/1.5.dfsg+1.5.0.1-4 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.8.0.1) Gecko/20060313 Debian/1.5.dfsg+1.5.0.1-4 Firefox/1.5.0.1

nsContentHTTPStartup sets the equivalent of general.useragent.product and general.useragent.productSub at startup time, overriding the values the user may have set for these.

Afterwards, if the user changes these preference values, his values are used.

If you set there preferences in the system preferences file (such as firefox.js in defaults/pref), the preference value is ignored and overriden. If the user then sets custom values, his values are used.
Later on, if the user "resets" the preference values, the system preferences value are used.

Either do not allow general.useragent.product* to be customized by the user or remove the nsContentHTTPStartup component and set the general.useragent.product* values in the system preferences.

If necessary, I have a working patch for the first half of the latter (ie removing the nsContentHTTPStartup component).

Reproducible: Always
Reporter

Comment 1

12 years ago
Fixed in bug #383167
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED

Updated

Last year
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.