The general.useragent.override preference value is supposed to be used in place of the computed useragent value. However this value is read once when the HTTP service is created, which may be early in the application initialization, before a user profile is selected. In particular, the layout code sets specific attributes of the user agent string (Necko version number) prior to the user selecting a profile. I've attached a stack trace showing this. Since the http protocol service does not register pref callbacks for values that may change when the user profile is read, the override value has no effect.
Assignee: gagan → neeti
Terry, Where is the preference general.useragent.override defined? I can't seem to find it. Thanks, Neeti
Status: NEW → ASSIGNED
I'm not sure it's *defined* anywhere. The default value is the empty string, or just "not defined". It's used in the http protocol handler /netwerk/protocol/http/src/nsHTTPHandler.cpp, line 625
r=darin on the patch.
Scott, Can I get a super review for this patch. Thanks, Neeti
you sure can, sr=mscott
Fix checked in
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.