Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle Firefox on iPad on iOS 13 #415

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/parser-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@ export default [

/* Firefox on iPad */
{
test: [/Macintosh(.*?) FxiOS(.*?) Version\//],
test: [/Macintosh(.*?) FxiOS(.*?)\//],
describe(ua) {
const version = Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/, ua);
return {
const result = {
name: OS_MAP.iOS,
version,
};
const version = Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/, ua);
if (version) {
result.version = version;
}
return result;
},
},

Expand Down
2 changes: 1 addition & 1 deletion src/parser-platforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default [

/* Firefox on iPad */
{
test: [/Macintosh(.*?) FxiOS(.*?) Version\//],
test: [/Macintosh(.*?) FxiOS(.*?)\//],
describe() {
return {
type: PLATFORMS_MAP.tablet,
Expand Down
15 changes: 15 additions & 0 deletions test/acceptance/useragentstrings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,21 @@
engine:
name: "WebKit"
version: "605.1.15"
-
ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/24.1 Safari/605.1.15"
spec:
browser:
name: "Firefox"
version: "24.1"
os:
name: "iOS"
platform:
type: "tablet"
vendor: "Apple"
model: "iPad"
engine:
name: "WebKit"
version: "605.1.15"
SeaMonkey:
-
ua: "Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1"
Expand Down