From a965227dd5fcb2b549b2df1d5ce1420926b44909 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 18 Sep 2014 00:31:04 +0200 Subject: [PATCH] Mobile Safari has a different user agent when standalone. --- BUGS.org | 21 +++++++++++++++++++-- src/yuu/core.js | 3 ++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/BUGS.org b/BUGS.org index 8e3d138..476ad5c 100644 --- a/BUGS.org +++ b/BUGS.org @@ -1,3 +1,9 @@ +* Next Version +** Remove CSS pixel ratio > 1 support in Safari + Mac OS X Safari has scaling bugs, and iOS Safari has lower + performance. + + * v1.2 ** DONE Override the GPU blacklist on GNU/Linux This is a security measure Chromium enables for normal web @@ -31,7 +37,18 @@ version for iOS 8. ** TODO iOS 8 iPad 3 [0/3] *** TODO Stalls a few seconds in - But the stall is uneven - affects some but not all - visuals, visuals but not music, etc. + But the stall is uneven - affects some but not all visuals, or + sometimes visuals but not music, etc. It's like the event loop is + running but the front buffer is not flipping in. + + The stalls almost disappear when connecting with desktop Safari + remote debugging, which... is confusing. *** TODO Choppy / staticy audio when backgrounding + There's probably no way to avoid this, other than trying to cut *** TODO Noise shader is way too expensive + Need some way to establish platform performance capabilities and + scale down effects when performance is bad. And, without any kind + of user configuration. +*** TODO Audio gets desynchronized + Not worth looking into until the general stalls are fixed, + since they might be causing it. diff --git a/src/yuu/core.js b/src/yuu/core.js index 24e3f2b..1d64e98 100644 --- a/src/yuu/core.js +++ b/src/yuu/core.js @@ -8,7 +8,8 @@ "use strict"; yuu.isSafari = function (ua) { - return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent); + return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent) + || navigator.standalone; }; yuu.require = function (m) { -- 2.30.2