Browse Source

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.
tags/7.0.0.beta1
Leif Åstrand 11 years ago
parent
commit
3d0a576dcd
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      shared/src/com/vaadin/shared/VBrowserDetails.java

+ 2
- 1
shared/src/com/vaadin/shared/VBrowserDetails.java View File

@@ -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) {

Loading…
Cancel
Save