aboutsummaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-13 09:45:20 +0000
committerterry%mozilla.org <>1999-05-13 09:45:20 +0000
commit75b01b2e84ac2271ba5fe23291655c5f748eb42d (patch)
tree6432f492810a552a811ee459a6b56f16a6728068 /query.cgi
parent95b43e67166b0d87be6d2386492caf44e55cd4c8 (diff)
downloadbugs-75b01b2e84ac2271ba5fe23291655c5f748eb42d.tar
bugs-75b01b2e84ac2271ba5fe23291655c5f748eb42d.tar.gz
bugs-75b01b2e84ac2271ba5fe23291655c5f748eb42d.tar.bz2
bugs-75b01b2e84ac2271ba5fe23291655c5f748eb42d.tar.xz
bugs-75b01b2e84ac2271ba5fe23291655c5f748eb42d.zip
Don't do javascript on browsers older than 4.06; it seems not to be working.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/query.cgi b/query.cgi
index ac62a0db5..144449ae8 100755
--- a/query.cgi
+++ b/query.cgi
@@ -243,6 +243,13 @@ function selectProduct(f) {
// Apparently, IE4 chokes on the below, so do nothing if running that.
var agt=navigator.userAgent.toLowerCase();
if ((agt.indexOf("msie") != -1)) return;
+ // Netscape 4.04 and 4.05 also choke with an "undefined"
+ // error. if someone can figure out how to "define" the
+ // whatever, we'll remove this hack. in the mean time, we'll
+ // assume that v4.00-4.03 also die, so we'll disable the neat
+ // javascript stuff for Netscape 4.05 and earlier.
+ var agtver = parseFloat(navigator.appVersion);
+ if (agtver <= 4.05 ) return;
var cnt = 0;
var i;