summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-28 13:54:07 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-28 13:54:07 +0300
commit3d0a576dcd40ba1fc80bc80814558235d2332c71 (patch)
treeeb38f84f539da314fbe0c871a1ead9d2d3b0993b /shared
parent9995fe0b4f0f77bf6542faef3419ef6aa2a63ed1 (diff)
downloadvaadin-framework-3d0a576dcd40ba1fc80bc80814558235d2332c71.tar.gz
vaadin-framework-3d0a576dcd40ba1fc80bc80814558235d2332c71.zip
Identify too old Safari browsers based on webkit version (#9423)
Detection based on "safari" version is not reliable because of the way various browsers based on webkit report their version numbers in the user agent string.
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/VBrowserDetails.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/src/com/vaadin/shared/VBrowserDetails.java b/shared/src/com/vaadin/shared/VBrowserDetails.java
index 7646d2ba01..2e81fbfe61 100644
--- a/shared/src/com/vaadin/shared/VBrowserDetails.java
+++ b/shared/src/com/vaadin/shared/VBrowserDetails.java
@@ -460,7 +460,8 @@ public class VBrowserDetails implements Serializable {
if (isIE() && getBrowserMajorVersion() < 8) {
return true;
}
- if (isSafari() && getBrowserMajorVersion() < 5) {
+ // Webkit 533 in Safari 4.1+, Android 2.2+, iOS 4+
+ if (isSafari() && getBrowserEngineVersion() < 533) {
return true;
}
if (isFirefox() && getBrowserMajorVersion() < 4) {