Browse Source

Make sure Firefox for iOS isn't detected as too old to function. (#11739)

Change-Id: Iea13b958356b0246586bcb7e9969bc26db43bb96
tags/8.10.0.alpha1
Felix Fontein 2 months ago
parent
commit
58a9520398
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      shared/src/main/java/com/vaadin/shared/VBrowserDetails.java

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

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

Loading…
Cancel
Save