Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ref #2532096 - Added better detection to Get's env for Chrome on Android

  • Loading branch information...
commit 42a6544f291365e9f5791d3b076030fd5f3804bc 1 parent 64098e1
Dav Glass authored April 02, 2012
2  src/get/js/get.js
@@ -538,7 +538,7 @@ Y.Get = Get = {
538 538
             // "onload".
539 539
             // davglass: Seems that Chrome on Android needs this to be false.
540 540
             cssLoad: ((!ua.gecko && !ua.webkit) || 
541  
-                ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.mobile),
  541
+                ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.chrome <=18),
542 542
 
543 543
             // True if this browser preserves script execution order while
544 544
             // loading scripts in parallel as long as the script node's `async`
2  src/get/tests/get-test.js
@@ -13,7 +13,7 @@ YUI.add('get-test', function (Y) {
13 13
             // True if this browser should call an onFailure callback on a link
14 14
             // that 404s. Currently only Firefox 9+ and WebKit 535.24+ (Chrome
15 15
             // 19) support this.
16  
-            cssFailure: ua.gecko >= 9 || ua.webkit >= 535.24,
  16
+            cssFailure: ua.gecko >= 9 || (ua.webkit >= 535.24 && !(ua.chrome && ua.chrome <=18)),
17 17
 
18 18
             // True if this browser should call an onFailure callback on a
19 19
             // script that 404s.

0 notes on commit 42a6544

Please sign in to comment.
Something went wrong with that request. Please try again.