From 950153bcd407c5c6c01c21d3f5d6a1d6de94fb3c Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Mon, 21 Mar 2022 20:59:26 +0100 Subject: [PATCH] Adds detection for SavySoda 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 a3593dd723..5d03553f22 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -359,6 +359,7 @@ class Browser extends AbstractClientParser 'PV' => 'Safari Technology Preview', 'S5' => 'Safe Exam Browser', 'SW' => 'SalamWeb', + 'SD' => 'SavySoda', 'S9' => 'Secure Browser', 'SV' => 'SFive', 'SH' => 'Shiira', @@ -464,7 +465,7 @@ class Browser extends AbstractClientParser 'VG', 'VI', 'VM', 'WP', 'WH', 'XV', 'YJ', 'YN', 'FH', 'B1', 'BO', 'HB', 'PC', 'LA', 'LT', 'PD', 'HR', 'HU', 'HP', 'IO', 'TP', 'CJ', 'HQ', 'HI', 'NA', 'BW', 'YO', - 'DC', 'G8', 'DT', 'AP', 'AK', 'UI', + 'DC', 'G8', 'DT', 'AP', 'AK', 'UI', 'SD', ], 'Firefox' => [ 'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1', @@ -496,7 +497,7 @@ class Browser extends AbstractClientParser 'PE', 'QU', 'RE', 'S0', 'S7', 'SA', 'SB', 'SG', 'SK', 'ST', 'SU', 'T1', 'UH', 'UM', 'UT', 'VE', 'VV', 'WI', 'WP', 'YN', 'IO', 'IS', 'HQ', 'RW', 'HI', 'NA', 'BW', - 'YO', 'PK', 'MR', 'AP', 'AK', 'UI', + 'YO', 'PK', 'MR', 'AP', 'AK', 'UI', 'SD', ]; /** diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index 55c787eab1..71f2669e6c 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -5147,3 +5147,14 @@ family: Chrome headers: X-Requested-With: yuce.browser.mini +- + user_agent: Mozilla/5.0 (Linux; Android 12; SM-N976B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.101 Mobile Safari/537.36 + client: + type: browser + name: SavySoda + version: "" + engine: Blink + engine_version: "" + family: Chrome + headers: + X-Requested-With: SavySoda.PrivateBrowsing diff --git a/regexes/client/hints/browsers.yml b/regexes/client/hints/browsers.yml index a22b898218..8c8dab3b93 100644 --- a/regexes/client/hints/browsers.yml +++ b/regexes/client/hints/browsers.yml @@ -50,3 +50,4 @@ 'com.ask.browser': 'Ask.com' 'com.browser.tssomas': 'Super Fast Browser' 'yuce.browser.mini': 'Ui Browser Mini' +'SavySoda.PrivateBrowsing': 'SavySoda'