From 5ff6e2759f19cb61a7ae2901b0a228239e004d75 Mon Sep 17 00:00:00 2001 From: sanchezzzhak Date: Mon, 29 Aug 2022 19:38:54 +0300 Subject: [PATCH] feat(client) detect app for clienthints: Explore Browser, Microsoft Edge, Web Browser & Explorer ref #7039 --- Parser/Client/Browser.php | 2 ++ Tests/Parser/Client/fixtures/browser.yml | 33 ++++++++++++++++++++++++ regexes/client/hints/browsers.yml | 3 +++ 3 files changed, 38 insertions(+) diff --git a/Parser/Client/Browser.php b/Parser/Client/Browser.php index 928d921f36..53d450b51c 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -202,6 +202,7 @@ class Browser extends AbstractClientParser 'EN' => 'EinkBro', 'EB' => 'Element Browser', 'EE' => 'Elements Browser', + 'EX' => 'Explore Browser', 'EZ' => 'eZ Browser', 'EU' => 'EUI Browser', 'EP' => 'GNOME Web', @@ -510,6 +511,7 @@ class Browser extends AbstractClientParser 'VM' => 'VMware AirWatch', 'WI' => 'Wear Internet Browser', 'WP' => 'Web Explorer', + 'W3' => 'Web Browser & Explorer', 'WE' => 'WebPositive', 'WF' => 'Waterfox', 'WB' => 'Wave Browser', diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index 7a46818e3c..f3a0a47eee 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -7072,3 +7072,36 @@ family: Chrome headers: http-x-requested-with: com.coccoc.trinhduyet +- + user_agent: Mozilla/5.0 (Linux; Android 8.1.0; SM-J530FM) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36 + client: + type: browser + name: Explore Browser + version: "" + engine: Blink + engine_version: 68.0.3440.91 + family: Chrome + headers: + http-x-requested-with: com.browser.explore +- + user_agent: Mozilla/5.0 (Linux; Android 6.0.1; SM-J500H Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36 + client: + type: browser + name: Microsoft Edge + version: "" + engine: Blink + engine_version: 55.0.2883.91 + family: Internet Explorer + headers: + http-x-requested-with: com.microsoft.emmx +- + user_agent: Mozilla/5.0 (Linux; Android 9; TA-1032 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/72.0.3626.121 Mobile Safari/537.36 + client: + type: browser + name: Web Browser & Explorer + version: "" + engine: Blink + engine_version: 72.0.3626.121 + family: Chrome + headers: + http-x-requested-with: com.explore.web.browser diff --git a/regexes/client/hints/browsers.yml b/regexes/client/hints/browsers.yml index f8190b9e46..d06df04093 100644 --- a/regexes/client/hints/browsers.yml +++ b/regexes/client/hints/browsers.yml @@ -184,3 +184,6 @@ 'com.flyperinc.flyperlink': 'Flyperlink' 'com.w3engineers.banglabrowser': 'Bangla Browser' 'com.coccoc.trinhduyet': 'Coc Coc' +'com.browser.explore': 'Explore Browser' +'com.microsoft.emmx': 'Microsoft Edge' +'com.explore.web.browser': 'Web Browser & Explorer'