From 732b1dedc765d5e1f93799a6480db606f4f67096 Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 16 Jun 2009 16:21:11 +0000 Subject: workaround to https://bugzilla.mozilla.org/show_bug.cgi?id=498132 git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@362 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUOnline/src/main/webapp/js/deployJava.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'BKUOnline/src/main/webapp') diff --git a/BKUOnline/src/main/webapp/js/deployJava.js b/BKUOnline/src/main/webapp/js/deployJava.js index 5466cbdd..8d644e00 100644 --- a/BKUOnline/src/main/webapp/js/deployJava.js +++ b/BKUOnline/src/main/webapp/js/deployJava.js @@ -29,6 +29,12 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * Added by EGIZ: + * This file contains a workaround to https://bugzilla.mozilla.org/show_bug.cgi?id=498132 + * (see lines 90-92) + */ + /* * deployJava.js * @@ -83,8 +89,9 @@ var deployJava = { var list = new Array(); if (deployJava.isPluginInstalled()) { var plugin = deployJava.getPlugin(); - for (var i = 0; i < plugin.jvms.getLength(); i++) { - list[i] = plugin.jvms.get(i).version; + var jvms = plugin.jvms; + for (var i = 0; i < jvms.getLength(); i++) { + list[i] = jvms.get(i).version; } } else { var browser = deployJava.getBrowser(); @@ -130,7 +137,7 @@ var deployJava = { } } } - + if (deployJava.debug) { for (var i = 0; i < list.length; ++i) { alert('We claim to have detected Java SE ' + list[i]); @@ -390,14 +397,14 @@ var deployJava = { } } - var list = deployJava.getJREs(); + var list = deployJava.getJREs(); for (var i = 0; i < list.length; ++i) { if (deployJava.compareVersionToPattern(list[i], patternArray, familyMatch)) { return true; } } - + return false; } else { alert('Invalid versionPattern passed to versionCheck: ' + -- cgit v1.2.3