@@ -47,30 +47,30 @@ bot.html5.API = {
47
47
48
48
49
49
/**
50
- * True if the current browser is IE8 .
50
+ * True if the current browser is IE version 8 or earlier .
51
51
* @private {boolean}
52
52
* @const
53
53
*/
54
- bot . html5 . IS_IE8_ = goog . userAgent . IE &&
55
- bot . userAgent . isEngineVersion ( 8 ) && ! bot . userAgent . isEngineVersion ( 9 ) ;
54
+ bot . html5 . IS_IE8_OR_EARLIER_ = goog . userAgent . IE &&
55
+ ! bot . userAgent . isEngineVersion ( 9 ) ;
56
56
57
57
58
58
/**
59
- * True if the current browser is Safari 4 .
59
+ * True if the current browser is Safari version 4 or earlier .
60
60
* @private {boolean}
61
61
* @const
62
62
*/
63
- bot . html5 . IS_SAFARI4_ = goog . userAgent . product . SAFARI &&
64
- bot . userAgent . isProductVersion ( 4 ) && ! bot . userAgent . isProductVersion ( 5 ) ;
63
+ bot . html5 . IS_SAFARI4_OR_EARLIER_ = goog . userAgent . product . SAFARI &&
64
+ ! bot . userAgent . isProductVersion ( 5 ) ;
65
65
66
66
67
67
/**
68
- * True if the browser is Android 2.2 (Froyo).
68
+ * True if the browser is Android version 2.2 (Froyo) or earlier .
69
69
* @private {boolean}
70
70
* @const
71
71
*/
72
- bot . html5 . IS_ANDROID_FROYO_ = goog . userAgent . product . ANDROID &&
73
- bot . userAgent . isProductVersion ( 2.2 ) && ! bot . userAgent . isProductVersion ( 2.3 ) ;
72
+ bot . html5 . IS_ANDROID_FROYO_OR_EARLIER_ = goog . userAgent . product . ANDROID &&
73
+ ! bot . userAgent . isProductVersion ( 2.3 ) ;
74
74
75
75
76
76
/**
@@ -98,7 +98,7 @@ bot.html5.isSupported = function(api, opt_window) {
98
98
switch ( api ) {
99
99
case bot . html5 . API . APPCACHE :
100
100
// IE8 does not support application cache, though the APIs exist.
101
- if ( bot . html5 . IS_IE8_ ) {
101
+ if ( bot . html5 . IS_IE8_OR_EARLIER_ ) {
102
102
return false ;
103
103
}
104
104
return goog . isDefAndNotNull ( win . applicationCache ) ;
@@ -109,11 +109,11 @@ bot.html5.isSupported = function(api, opt_window) {
109
109
110
110
case bot . html5 . API . DATABASE :
111
111
// Safari4 database API does not allow writes.
112
- if ( bot . html5 . IS_SAFARI4_ ) {
112
+ if ( bot . html5 . IS_SAFARI4_OR_EARLIER_ ) {
113
113
return false ;
114
114
}
115
115
// Android Froyo does not support database, though the APIs exist.
116
- if ( bot . html5 . IS_ANDROID_FROYO_ ) {
116
+ if ( bot . html5 . IS_ANDROID_FROYO_OR_EARLIER_ ) {
117
117
return false ;
118
118
}
119
119
return goog . isDefAndNotNull ( win . openDatabase ) ;
@@ -129,14 +129,14 @@ bot.html5.isSupported = function(api, opt_window) {
129
129
130
130
case bot . html5 . API . LOCAL_STORAGE :
131
131
// IE8 does not support local storage, though the APIs exist.
132
- if ( bot . html5 . IS_IE8_ ) {
132
+ if ( bot . html5 . IS_IE8_OR_EARLIER_ ) {
133
133
return false ;
134
134
}
135
135
return goog . isDefAndNotNull ( win . localStorage ) ;
136
136
137
137
case bot . html5 . API . SESSION_STORAGE :
138
138
// IE8 does not support session storage, though the APIs exist.
139
- if ( bot . html5 . IS_IE8_ ) {
139
+ if ( bot . html5 . IS_IE8_OR_EARLIER_ ) {
140
140
return false ;
141
141
}
142
142
return goog . isDefAndNotNull ( win . sessionStorage ) &&
0 commit comments