diff --git a/apps/amo/__init__.py b/apps/amo/__init__.py index 3629fcbb1c..000c47591e 100644 --- a/apps/amo/__init__.py +++ b/apps/amo/__init__.py @@ -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) diff --git a/apps/amo/tests/test_url_prefix.py b/apps/amo/tests/test_url_prefix.py index 246859b753..6686790cbe 100644 --- a/apps/amo/tests/test_url_prefix.py +++ b/apps/amo/tests/test_url_prefix.py @@ -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)