From 3d0a576dcd40ba1fc80bc80814558235d2332c71 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Tue, 28 Aug 2012 13:54:07 +0300 Subject: 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. --- shared/src/com/vaadin/shared/VBrowserDetails.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/src') 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) { -- cgit v1.2.3