Those of you out there who are running an installation of SCT Luminis 3 may have noticed that the browser check always comes up warning you that the browser is unsupported when using Firefox 2, even though all the features seem to be completely supported.
This is due to the fact that the browsercheck javascript does not know about the new agent string that was introduced with Firefox 2. Generally a new release, or service pack to Luminis fixes this for newer browsers.
In order to change this you will need to alter a couple of files in you Luminis install.
The two files that need to be altered are:
- webapps/luminis/js/clientsniffer.js
- /webapps/luminis/WEB-INF/templates/portal/browserchk.thtml
clientsniffer.js
In this file you will need to alter the conditional of the big if-statement that follows the assignment for the variable is_nav5.
The problem is that the if checks for the existence of a revision number of 1.8. What you need to do is add an additional check for a revision number of 1.8.1.6. So the if-statement conditional becomes:
if (is_nav5 || agt.indexOf(”rv:1.7.12″) != -1 || agt.indexOf(”rv:1.8″) != -1 || agt.indexOf(”rv:1.8.1.6″) != -1)
The next thing to do is to add an additional Firefox variable that is set to true if the major number is 2. I added this after the existing variable is_fox1_5.
var is_fox2 = (is_fox && (is_major == 2));
browserchk.thtml
In the browsercheck file you need to alter if-statement that sets the variable supported to have a true value. This if-statement should follow immediately after the one that checks for whether java is enabled in your browser.
What you need to add is an additional OR check, so that the if-statement conditional looks like the following:
if ((is_nav8) || (is_nav7) || (is_moz1_7) || (is_win && is_ie5up) || (is_win && is_ie6) || (is_saf1_3) || (is_fox1_5) || (is_fox2) || (is_win && is_fox1))
I have tested this change with Firefox 2.0.0.6 on the following browsers:
- Mac OS X 10.4.10
- Windows XP SP2
- Windows Vista
- Ubuntu 6.10
Resources