mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
email: Fix identification of chrome as safari on ios
The user agent(UA) string for chrome on ios contains "crios" instead of "chrome". Added the missing test for corresponding case. Fixes: #7441.
This commit is contained in:
committed by
Tim Abbott
parent
f6bf11f5e6
commit
8b152fc109
@@ -71,6 +71,9 @@ class TestBrowserAndOsUserAgentStrings(ZulipTestCase):
|
||||
'like gecko', 'Internet Explorer', 'Windows'),
|
||||
('Mozilla/5.0 (Android; Mobile; rv:27.0) ' +
|
||||
'Gecko/27.0 Firefox/27.0', 'Firefox', 'Android'),
|
||||
('Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) '
|
||||
'AppleWebKit/602.1.50 (KHTML, like Gecko) '
|
||||
'CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1', 'Chrome', 'iOS'),
|
||||
('Mozilla/5.0 (iPad; CPU OS 6_1_3 like Mac OS X) ' +
|
||||
'AppleWebKit/536.26 (KHTML, like Gecko) ' +
|
||||
'Version/6.0 Mobile/10B329 Safari/8536.25', 'Safari', 'iOS'),
|
||||
|
||||
Reference in New Issue
Block a user