You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/09/08 11:54:26 UTC
svn commit: r573806 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
Author: bommel
Date: Sat Sep 8 02:54:25 2007
New Revision: 573806
URL: http://svn.apache.org/viewvc?rev=573806&view=rev
Log:
(TOBAGO-478) IE 7.0 should be supported by UserAgent
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java?rev=573806&r1=573805&r2=573806&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java Sat Sep 8 02:54:25 2007
@@ -40,6 +40,8 @@
public static final UserAgent MSIE_6_0 = new UserAgent("msie", "6_0");
+ public static final UserAgent MSIE_7_O = new UserAgent("msie", "7_0");
+
public static final UserAgent MSIE_5_0_MAC = new UserAgent("msie", "5_0_mac");
public static final UserAgent MSIE_6_0_MAC = new UserAgent("msie", "6_0_mac");
@@ -132,6 +134,8 @@
} else {
return MSIE_6_0;
}
+ } else if (header.indexOf("msie 7.0") > -1) {
+ return MSIE_7_O;
} else {
return MSIE;
}
@@ -178,6 +182,8 @@
return MSIE_6_0;
} else if (id.equals("msie_6_0_mac")) {
return MSIE_6_0_MAC;
+ } else if (id.equals("msie_7_0")) {
+ return MSIE_7_O;
} else {
return MSIE;
}