From 5de02c8d51342b5b0e21c5c82523ba684d44712f Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 25 Jun 2014 12:31:51 -0300 Subject: [PATCH] Bug WISE-242 fixed Add support for Firefox 3 --- .../main/java/com/wisemapping/filter/SupportedUserAgent.java | 1 + .../test/java/com/wisemapping/test/model/UserAgentTest.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java b/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java index d50e8e45..2e40ea1b 100644 --- a/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java +++ b/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java @@ -47,6 +47,7 @@ public class SupportedUserAgent implements Serializable { boolean result = browser == Browser.FIREFOX && majorVersion >= 10; result = result || browser == Browser.FIREFOX2 && majorVersion >= 17; + result = result || browser == Browser.FIREFOX3 && majorVersion >= 29; result = result || browser == Browser.IE8 || browser == Browser.IE9 || browser == Browser.IE11 ; result = result || browser == Browser.IE && majorVersion >= 8; result = result || browser == Browser.OPERA10 && majorVersion >= 11; diff --git a/wise-webapp/src/test/java/com/wisemapping/test/model/UserAgentTest.java b/wise-webapp/src/test/java/com/wisemapping/test/model/UserAgentTest.java index 6ae0f326..d347261d 100644 --- a/wise-webapp/src/test/java/com/wisemapping/test/model/UserAgentTest.java +++ b/wise-webapp/src/test/java/com/wisemapping/test/model/UserAgentTest.java @@ -54,6 +54,9 @@ public class UserAgentTest { final SupportedUserAgent firefox20 = SupportedUserAgent.create("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20121215 Firefox/20.0 AppEngine-Google; (+http://code.google.com/appengine; appid: slubuntuk)"); Assert.assertEquals(firefox20.isBrowserSupported(), true); + + final SupportedUserAgent firefox30 = SupportedUserAgent.create("Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0"); + Assert.assertEquals(firefox30.isBrowserSupported(), true); }