From 4cd824cc3924f5e362365cf57f2ed5831fda5ebe Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Wed, 7 Feb 2024 13:15:59 +0100 Subject: [PATCH] Adds detection for Godzilla Browser ref #7039 --- Parser/Client/Browser.php | 5 +++-- Tests/Parser/Client/fixtures/browser.yml | 11 +++++++++++ regexes/client/hints/browsers.yml | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Parser/Client/Browser.php b/Parser/Client/Browser.php index 0c1febb658..744cb2ee0f 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -253,6 +253,7 @@ class Browser extends AbstractClientParser 'GH' => 'Ghostery Privacy Browser', 'GI' => 'GinxDroid Browser', 'GB' => 'Glass Browser', + 'GD' => 'Godzilla Browser', 'GE' => 'Google Earth', 'GP' => 'Google Earth Pro', 'GO' => 'GOG Galaxy', @@ -629,7 +630,7 @@ class Browser extends AbstractClientParser 'O6', 'P7', 'LJ', 'LC', 'O7', 'N2', 'A8', 'P8', 'RB', '1W', 'EV', 'I9', 'V4', 'H4', '1T', 'M5', '0S', '0C', 'ZR', 'D6', 'F6', 'RC', 'WD', 'P3', 'FT', 'A9', 'X2', - 'N3', + 'N3', 'GD', ], 'Firefox' => [ 'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1', @@ -670,7 +671,7 @@ class Browser extends AbstractClientParser 'B9', 'T0', 'I8', 'O6', 'P7', 'O8', '4B', 'A8', 'P8', '1W', 'EV', 'Z0', 'I9', 'V4', 'H4', 'M5', '0S', '0C', 'ZR', 'D6', 'F6', 'P3', 'FT', 'A9', 'X2', 'NI', 'FG', - 'TH', 'N3', + 'TH', 'N3', 'GD', ]; /** diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index 44e4eb3ea5..c3ead217ba 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -8092,3 +8092,14 @@ family: Chrome headers: http-x-requested-with: com.androidbull.incognito.browser +- + user_agent: Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36 + client: + type: browser + name: Godzilla Browser + version: "" + engine: Blink + engine_version: 92.0.4515.159 + family: Chrome + headers: + http-x-requested-with: com.mosoft.godzilla diff --git a/regexes/client/hints/browsers.yml b/regexes/client/hints/browsers.yml index 2a08715067..c56b2793f5 100644 --- a/regexes/client/hints/browsers.yml +++ b/regexes/client/hints/browsers.yml @@ -237,3 +237,4 @@ 'com.sec.android.app.sbrowser.beta': 'Samsung Browser' 'threads.thor': 'Thor' 'com.androidbull.incognito.browser': 'Incognito Browser' +'com.mosoft.godzilla': 'Godzilla Browser'