Closed
Bug 115773
Opened 24 years ago
Closed 10 years ago
navigator.appVersion doesn't change when spoofing useragent
Categories
(Core :: Networking: HTTP, enhancement)
Core
Networking: HTTP
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: sbl+bugzilla, Unassigned)
References
()
Details
(Whiteboard: parity-opera)
Reproducible: Every time
Browser: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.6+) Gecko/20011214.
Build ID: 2001121410
* Description:
The appversion remains the same after change of useragent and there doesn't
seem to be a preference setting to set it to a value that matches the useragent
string.
This is needed as some sites checks navigator.appVersion and denies access if it
isn't within their spec. For example:
https://disp.sebank.se/cgi-bin/ptslogin/wow/wo10.c1001.f001
which should render a login screen but as of now shows a "upgrade your browser"
page.
* Reproduce with:
In user.js set
user_pref("general.useragent.override", "Mozilla/4.76 [en] (X11; U; SunOS 5.8
sun4u; Nav)");
Run the javascript code:
document.write("navigator.userAgent " + navigator.userAgent + "<BR>");
document.write("navigator.appVersion " + navigator.appVersion + "<BR>");
Or go to:
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
Check the reported useragent and appversion 2/3 down the page.
* Actual result:
navigator.userAgent Mozilla/4.76 [en] (X11; U; SunOS 5.8 sun4u; Nav)
navigator.appVersion 5.0 (X11; en-US)
* Expected result:
navigator.userAgent Mozilla/4.76 [en] (X11; U; SunOS 5.8 sun4u; Nav)
* If it should mimic netscape 4.76:
navigator.appVersion 4.76 [en] (X11; U; SunOS 5.8 sun4u; Nav)
* The mozilla variant is probably also OK:
navigator.appVersion 4.76 (X11; en-US)
The same results can be obtained if you look at the httpheaders via a cgiscript.
The best solution from my point of view is to be able to set the appversion
string in the same manner as the useragent, otherwise mozilla must know about
the mapping between useragent-string and appversion-string for every browser.
It would be nice if it is also possible to set each part of the useragent
string and that the appversion and useragent is built from this data, this last
part shouldn't be hard as it seems that only the version number preference is
left to implement.
![]() |
||
Comment 1•24 years ago
|
||
Over to networking:http.... (back end code for this lives there)
Assignee: asa → darin
Status: UNCONFIRMED → NEW
Component: Browser-General → Networking: HTTP
Ever confirmed: true
QA Contact: doronr → tever
Comment 2•24 years ago
|
||
-> future
Platform:OS => ALL:ALL
OS: SunOS → All
Hardware: Sun → All
Target Milestone: --- → Future
Comment 3•23 years ago
|
||
updating summary to be grammatically correct ;)
navigator.appVersion don't change
~ to ~
navigator.appVersion doesn't change
Summary: navigator.appVersion don't change when spoofing useragent → navigator.appVersion doesn't change when spoofing useragent
FYI, there are specific parts of www.fidelity.com quotes & research website
where they block mozilla/5.0. For a list of non-blocked browsers goto
http://personal.fidelity.com/global/search/content/system.html#Browsers
This should be a good testing area.
Comment 5•22 years ago
|
||
Related bug: http://bugzilla.mozilla.org/show_bug.cgi?id=61071
My take on this issue is that the default should be changed, but the values
should also be spoofable.
Updated•21 years ago
|
Whiteboard: parity-opera
Comment 6•21 years ago
|
||
What is the work-around?
(In reply to comment #5)
> Related bug: http://bugzilla.mozilla.org/show_bug.cgi?id=61071
In light of that bug, I actually think that this one should be closed. I'm not voting for this anymore. ;-)
Updated•19 years ago
|
Assignee: darin → nobody
QA Contact: tever → networking.http
Target Milestone: Future → ---
Comment 8•17 years ago
|
||
Not only the value returned isn't sensible (bug 61071); it isn't spoofable either (this bug). I'm voting for both.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•