@@ -19,6 +19,7 @@ function $SnifferProvider() {
1919 this . $get = [ '$window' , '$document' , function ( $window , $document ) {
2020 var eventSupport = { } ,
2121 android = int ( ( / a n d r o i d ( \d + ) / . exec ( lowercase ( ( $window . navigator || { } ) . userAgent ) ) || [ ] ) [ 1 ] ) ,
22+ boxee = / B o x e e / i. test ( ( $window . navigator || { } ) . userAgent ) ,
2223 document = $document [ 0 ] || { } ,
2324 vendorPrefix ,
2425 vendorRegex = / ^ ( M o z | w e b k i t | O | m s ) (? = [ A - Z ] ) / ,
@@ -42,10 +43,10 @@ function $SnifferProvider() {
4243
4344 transitions = ! ! ( ( 'transition' in bodyStyle ) || ( vendorPrefix + 'Transition' in bodyStyle ) ) ;
4445 animations = ! ! ( ( 'animation' in bodyStyle ) || ( vendorPrefix + 'Animation' in bodyStyle ) ) ;
45-
46+
4647 if ( android && ( ! transitions || ! animations ) ) {
47- transitions = isString ( document . body . style . webkitTransition ) ;
48- animations = isString ( document . body . style . webkitAnimation ) ;
48+ transitions = isString ( document . body . style . webkitTransition ) ;
49+ animations = isString ( document . body . style . webkitAnimation ) ;
4950 }
5051 }
5152
@@ -55,7 +56,10 @@ function $SnifferProvider() {
5556 // so let's not use the history API at all.
5657 // http://code.google.com/p/android/issues/detail?id=17471
5758 // https://github.com/angular/angular.js/issues/904
58- history : ! ! ( $window . history && $window . history . pushState && ! ( android < 4 ) ) ,
59+
60+ // older webit browser (533.9) on Boxee box has exactly the same problem as Android has
61+ // so let's not use the history API also
62+ history : ! ! ( $window . history && $window . history . pushState && ! ( android < 4 ) && ! boxee ) ,
5963 hashchange : 'onhashchange' in $window &&
6064 // IE8 compatible mode lies
6165 ( ! document . documentMode || document . documentMode > 7 ) ,
0 commit comments