Closed
Bug 209532
Opened 22 years ago
Closed 21 years ago
[Patch] Prefs to override user agent app name and app version
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mpgritti, Assigned: darin.moz)
References
Details
(Keywords: embed)
Attachments
(2 files)
954 bytes,
patch
|
darin.moz
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
1.27 KB,
patch
|
darin.moz
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
These would make life for embedders a lot easier.
To implement an UA string like suggested in
http://www.mozilla.org/build/revised-user-agent-strings.html
at the moment we need to build the user agent string ourself and to use the
override pref.
Reporter | ||
Comment 1•22 years ago
|
||
Updated•22 years ago
|
Attachment #125740 -
Flags: superreview?(darin)
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 125740 [details] [diff] [review]
add the two prefs
r+sr=darin (ok)
Attachment #125740 -
Flags: superreview?(darin)
Attachment #125740 -
Flags: superreview+
Attachment #125740 -
Flags: review+
Comment 3•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
![]() |
||
Comment 4•21 years ago
|
||
This hosed my UA string completely in my current cvs build.
My current UA is "/ (X11; U; Linux i686; de-AT; rv:1.6a) Gecko/20031007" !!!
about:config reports general.useragent.contentlocale, general.useragent.locale
and general.useragent.security set but no other general.useragent.* prefs to be
set to anything.
I guess Mozilla now somehow gets empty strings for appName and appVersion and
uses them.
Java made Mozilla not even start by the following error message:
INTERNAL ERROR on Browser End: Expected a version > 5! Version = 0
This also happens because of this damaged UA string.
Comment 5•21 years ago
|
||
Updated•21 years ago
|
Attachment #133008 -
Flags: superreview?(darin)
Attachment #133008 -
Flags: review?(darin)
Comment 6•21 years ago
|
||
*** Bug 221807 has been marked as a duplicate of this bug. ***
Comment 8•21 years ago
|
||
Comment on attachment 133008 [details] [diff] [review]
Possible fix for empty prefs
I've tested this patch and it fixes the regression for me.
Comment 9•21 years ago
|
||
*** Bug 221795 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 10•21 years ago
|
||
The fix seems to work, I have a Mozilla/5.0 user agent again, and Java likes me
again ;-)
Assignee | ||
Comment 11•21 years ago
|
||
Comment on attachment 133008 [details] [diff] [review]
Possible fix for empty prefs
yes, of course! we actually depend on the other UA string pref values
existing. otherwise, things just aren't happy. i should have remembered!
r+sr=darin
Attachment #133008 -
Flags: superreview?(darin)
Attachment #133008 -
Flags: superreview+
Attachment #133008 -
Flags: review?(darin)
Attachment #133008 -
Flags: review+
Comment 12•21 years ago
|
||
Supplementary fix checked in.
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•