Author: lfryc(a)redhat.com
Date: 2011-01-06 08:47:03 -0500 (Thu, 06 Jan 2011)
New Revision: 20909
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/detect-browser.js
Log:
added improved detection for Firefox (RFPL-940)
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/detect-browser.js
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/detect-browser.js 2011-01-06
13:28:36 UTC (rev 20908)
+++
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/detect-browser.js 2011-01-06
13:47:03 UTC (rev 20909)
@@ -12,6 +12,13 @@
version: typeof window.opera != "undefined" ? opera.version() :
(userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
os : navigator.platform
};
+
+ if (jQuery.browser.mozilla) {
+ var matcher = /firefox\/([\d.]+)/;
+ if (matcher.test(userAgent)) {
+ jQuery.browser.version = userAgent.match(matcher)[1];
+ }
+ }
if (jQuery.browser.chrome) {
jQuery.browser.name = "Chrome";
Show replies by date