Opt trello.com to mobile UA
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Jul 2019 23:36:01 +0000 (23:36 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Jul 2019 23:36:01 +0000 (23:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199686
rdar://problem/51708119

Reviewed by Wenson Hsieh.

* UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::desktopClassBrowsingRecommendedForRequest): Currently the desktop version
of the site prevents users from tapping cards to edit them. Opt trello into the mobile
UA for now.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247332 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

index 9a30637..66ba26f 100644 (file)
@@ -1,3 +1,16 @@
+2019-07-10  Jon Lee  <jonlee@apple.com>
+
+        Opt trello.com to mobile UA
+        https://bugs.webkit.org/show_bug.cgi?id=199686
+        rdar://problem/51708119
+
+        Reviewed by Wenson Hsieh.
+
+        * UIProcess/ios/WebPageProxyIOS.mm:
+        (WebKit::desktopClassBrowsingRecommendedForRequest): Currently the desktop version
+        of the site prevents users from tapping cards to edit them. Opt trello into the mobile
+        UA for now.
+
 2019-07-10  Daniel Bates  <dabates@apple.com>
 
         [iOS] Selection handles "Lollipops" can become gray and stay gray
index fc87a56..dc865d8 100644 (file)
@@ -1303,6 +1303,9 @@ static bool desktopClassBrowsingRecommendedForRequest(const WebCore::ResourceReq
     if (equalLettersIgnoringASCIICase(host, "v.china.com.cn"))
         return false;
 
+    if (equalLettersIgnoringASCIICase(host, "trello.com") || host.endsWithIgnoringASCIICase(".trello.com"))
+        return false;
+
     return true;
 }