diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2013-08-01 03:23:54 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-08-01 03:23:54 +0200 |
commit | 379fd608feea427f77fe924487a326bf3a37d9c6 (patch) | |
tree | a0316e56794de6441024a8f35b01cba77bb201cc /Bugzilla | |
parent | c01c56247f6c35ec1f155610ca6737f7d03e533b (diff) | |
download | bugzilla-379fd608feea427f77fe924487a326bf3a37d9c6.tar.gz bugzilla-379fd608feea427f77fe924487a326bf3a37d9c6.tar.xz |
Bug 834290: Add support for iPads and iPhones in useragent strings
r=dkl a=sgreen
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/UserAgent.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/UserAgent.pm b/Bugzilla/UserAgent.pm index c3f38cf85..3c334d08d 100644 --- a/Bugzilla/UserAgent.pm +++ b/Bugzilla/UserAgent.pm @@ -49,6 +49,7 @@ use constant PLATFORMS_MAP => ( # HP qr/\(.*9000.*\)/ => ["PA-RISC", "HP"], # ARM + qr/\(.*(?:iPad|iPhone).*\)/ => ["ARM"], qr/\(.*ARM.*\)/ => ["ARM", "PocketPC"], # PocketPC intentionally before PowerPC qr/\(.*Windows CE.*PPC.*\)/ => ["ARM", "PocketPC"], @@ -119,6 +120,12 @@ use constant OS_MAP => ( qr/\(.*Win(?:dows[ -]|)NT.*\)/ => ["Windows NT"], qr/\(.*Windows.*NT.*\)/ => ["Windows NT"], # OS X + qr/\(.*(?:iPad|iPhone).*OS 7.*\)/ => ["iOS 7"], + qr/\(.*(?:iPad|iPhone).*OS 6.*\)/ => ["iOS 6"], + qr/\(.*(?:iPad|iPhone).*OS 5.*\)/ => ["iOS 5"], + qr/\(.*(?:iPad|iPhone).*OS 4.*\)/ => ["iOS 4"], + qr/\(.*(?:iPad|iPhone).*OS 3.*\)/ => ["iOS 3"], + qr/\(.*(?:iPad|iPhone).*\)/ => ["iOS"], qr/\(.*Mac OS X (?:|Mach-O |\()10.8.*\)/ => ["Mac OS X 10.8"], qr/\(.*Mac OS X (?:|Mach-O |\()10.7.*\)/ => ["Mac OS X 10.7"], qr/\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ => ["Mac OS X 10.6"], |