summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/VBrowserDetails.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/VBrowserDetails.java b/shared/src/main/java/com/vaadin/shared/VBrowserDetails.java
index 38c64fef34..e8b36305d4 100644
--- a/shared/src/main/java/com/vaadin/shared/VBrowserDetails.java
+++ b/shared/src/main/java/com/vaadin/shared/VBrowserDetails.java
@@ -681,10 +681,14 @@ public class VBrowserDetails implements Serializable {
return true;
}
// Webkit 533 in Safari 4.1+, Android 2.2+, iOS 4+
- if (isSafari() && getBrowserEngineVersion() < 533) {
+ // All iOS browsers use Safari as their engine.
+ if ((isSafari() || isIOS()) && getBrowserEngineVersion() < 533) {
return true;
}
- if (isFirefox() && getBrowserMajorVersion() < 45) {
+ // Firefox for iOS uses a different versioning scheme and will
+ // fail the test. Since it is already covered by the iOS test
+ // above, ignore it here.
+ if (isFirefox() && !isIOS() && getBrowserMajorVersion() < 45) {
return true;
}
if (isOpera() && getBrowserMajorVersion() < 11) {