Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
3bd72b44
Commit
3bd72b44
authored
Aug 01, 2013
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 834290: Add support for iPads and iPhones in useragent strings
r=dkl a=sgreen
parent
83f89b8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
UserAgent.pm
Bugzilla/UserAgent.pm
+7
-0
No files found.
Bugzilla/UserAgent.pm
View file @
3bd72b44
...
@@ -47,6 +47,7 @@ use constant PLATFORMS_MAP => (
...
@@ -47,6 +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/\(.*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"
],
...
@@ -117,6 +118,12 @@ use constant OS_MAP => (
...
@@ -117,6 +118,12 @@ use constant OS_MAP => (
qr/\(.*Win(?:dows[ -]|)NT.*\)/ => ["
Windows
NT
"],
qr/\(.*Win(?:dows[ -]|)NT.*\)/ => ["
Windows
NT
"],
qr/\(.*Windows.*NT.*\)/ => ["
Windows
NT
"],
qr/\(.*Windows.*NT.*\)/ => ["
Windows
NT
"],
# OS X
# 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.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
"],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment