iOS 10 should be served javascript_version:es5 (#11387)

* iOS 10 should be served javascript_version:es5

Fixes #11234

* Update min Safari version to 12
This commit is contained in:
Matt N 2018-01-05 14:28:03 -05:00 committed by Paulus Schoutsen
parent 65d841c3a6
commit 71fb7a6ef6

View File

@ -586,9 +586,10 @@ def _is_latest(js_option, request):
from user_agents import parse
useragent = parse(useragent)
# on iOS every browser is a Safari which we support from version 10.
# on iOS every browser is a Safari which we support from version 11.
if useragent.os.family == 'iOS':
return useragent.os.version[0] >= 10
# Was >= 10, temp setting it to 12 to work around issue #11387
return useragent.os.version[0] >= 12
family_min_version = {
'Chrome': 50, # Probably can reduce this