Detect seamonkey with firefox compat as seamonkey; bug 594578
This commit is contained in:
Родитель
4acbbac109
Коммит
31d65bbd30
|
@ -229,7 +229,7 @@ class MOZILLA:
|
|||
guid = '{86c18b42-e466-45a9-ae7a-9b95ba6f5640}'
|
||||
|
||||
# UAs will attempt to match in this order
|
||||
APP_DETECT = (MOBILE, FIREFOX, THUNDERBIRD, SEAMONKEY, SUNBIRD)
|
||||
APP_DETECT = (MOBILE, THUNDERBIRD, SEAMONKEY, SUNBIRD, FIREFOX)
|
||||
APP_USAGE = _apps = (FIREFOX, THUNDERBIRD, MOBILE, SEAMONKEY, SUNBIRD)
|
||||
APPS = dict((app.short, app) for app in _apps)
|
||||
APP_IDS = dict((app.id, app) for app in _apps)
|
||||
|
|
|
@ -75,6 +75,9 @@ class MiddlewareTest(test.TestCase):
|
|||
# Mobile gets priority because it has both strings in its UA...
|
||||
check('/de/', '/de/mobile/', 'Firefox Fennec')
|
||||
|
||||
# SeaMonkey gets priority because it has both strings in its UA...
|
||||
check('/en-US/', '/en-US/seamonkey/', 'Firefox SeaMonkey')
|
||||
|
||||
def test_get_lang(self):
|
||||
def check(url, expected):
|
||||
response = self.process(url)
|
||||
|
|
Загрузка…
Ссылка в новой задаче