Commit 6efd6ab1 authored by Dave Lawrence's avatar Dave Lawrence

Bug 905537 - Add support for iPod Touch in useragent strings for platform detection

r=LpSolit,a=sgreen
parent 710f9ac9
...@@ -47,7 +47,7 @@ use constant PLATFORMS_MAP => ( ...@@ -47,7 +47,7 @@ use constant PLATFORMS_MAP => (
# HP # HP
qr/\(.*9000.*\)/ => ["PA-RISC", "HP"], qr/\(.*9000.*\)/ => ["PA-RISC", "HP"],
# ARM # ARM
qr/\(.*(?:iPad|iPhone).*\)/ => ["ARM"], qr/\(.*(?:iPod|iPad|iPhone).*\)/ => ["ARM"],
qr/\(.*ARM.*\)/ => ["ARM", "PocketPC"], qr/\(.*ARM.*\)/ => ["ARM", "PocketPC"],
# PocketPC intentionally before PowerPC # PocketPC intentionally before PowerPC
qr/\(.*Windows CE.*PPC.*\)/ => ["ARM", "PocketPC"], qr/\(.*Windows CE.*PPC.*\)/ => ["ARM", "PocketPC"],
...@@ -123,7 +123,7 @@ use constant OS_MAP => ( ...@@ -123,7 +123,7 @@ use constant OS_MAP => (
qr/\(.*(?:iPad|iPhone).*OS 5.*\)/ => ["iOS 5"], qr/\(.*(?:iPad|iPhone).*OS 5.*\)/ => ["iOS 5"],
qr/\(.*(?:iPad|iPhone).*OS 4.*\)/ => ["iOS 4"], qr/\(.*(?:iPad|iPhone).*OS 4.*\)/ => ["iOS 4"],
qr/\(.*(?:iPad|iPhone).*OS 3.*\)/ => ["iOS 3"], qr/\(.*(?:iPad|iPhone).*OS 3.*\)/ => ["iOS 3"],
qr/\(.*(?:iPad|iPhone).*\)/ => ["iOS"], qr/\(.*(?:iPod|iPad|iPhone).*\)/ => ["iOS"],
qr/\(.*Mac OS X (?:|Mach-O |\()10.8.*\)/ => ["Mac OS X 10.8"], 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.7.*\)/ => ["Mac OS X 10.7"],
qr/\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ => ["Mac OS X 10.6"], qr/\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ => ["Mac OS X 10.6"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment