Closed Bug 331783 Opened 15 years ago Closed 13 years ago

nsContentHTTPStartup overrides preferences

Categories

(Firefox Build System :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glandium, Unassigned)

Details

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
Fixed in bug #383167
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.