diff --git a/src/parser-os.js b/src/parser-os.js index a66a118..41586fd 100644 --- a/src/parser-os.js +++ b/src/parser-os.js @@ -41,6 +41,18 @@ export default [ }, }, + /* Firefox on iPad */ + { + test: [/Macintosh(.*?) FxiOS(.*?) Version\//], + describe(ua) { + const version = Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/, ua); + return { + name: OS_MAP.iOS, + version, + }; + }, + }, + /* macOS */ { test: [/macintosh/i], diff --git a/src/parser-platforms.js b/src/parser-platforms.js index f9553bd..9c191ba 100644 --- a/src/parser-platforms.js +++ b/src/parser-platforms.js @@ -57,6 +57,18 @@ export default [ }, }, + /* Firefox on iPad */ + { + test: [/Macintosh(.*?) FxiOS(.*?) Version\//], + describe() { + return { + type: PLATFORMS_MAP.tablet, + vendor: 'Apple', + model: 'iPad', + }; + }, + }, + /* Amazon Kindle Fire */ { test: [/kftt build/i], diff --git a/test/acceptance/useragentstrings.yml b/test/acceptance/useragentstrings.yml index 4c0db65..522fd70 100644 --- a/test/acceptance/useragentstrings.yml +++ b/test/acceptance/useragentstrings.yml @@ -1823,6 +1823,22 @@ engine: name: "Gecko" version: "20100101" + - + ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/21.0 Version/13.0.3 Safari/605.1.15" + spec: + browser: + name: "Firefox" + version: "21.0" + os: + name: "iOS" + version: "13.0.3" + 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"