Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #642 from willkg/1192812-more-ios
Browse files Browse the repository at this point in the history
[bug 1192812] Fix platform inferring for firefox for ios
  • Loading branch information
willkg committed Aug 20, 2015
2 parents 6ecf455 + 514fd8e commit d6482c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fjord/feedback/models.py
Expand Up @@ -403,6 +403,9 @@ def infer_platform(cls, product, browser):
return browser.platform + ' ' + browser.platform_version
return browser.platform

elif product == u'Firefox for iOS':
return browser.platform + ' ' + browser.platform_version

return u''


Expand Down
1 change: 1 addition & 0 deletions fjord/feedback/tests/test_views.py
Expand Up @@ -411,6 +411,7 @@ def test_urls_product_inferred_platform_fxios(self):
feedback = models.Response.objects.latest(field_name='id')
assert feedback.locale == 'en-US'
assert feedback.product == 'Firefox for iOS'
assert feedback.platform == 'iPhone OS 8.4'
assert feedback.browser == 'Firefox for iOS'
assert feedback.browser_version == '1.0'
assert feedback.browser_platform == 'iPhone OS'
Expand Down

0 comments on commit d6482c9

Please sign in to comment.