Skip to content

Commit

Permalink
Rename Arc to Arc Search and improves detection for Arc Search and Ch…
Browse files Browse the repository at this point in the history
…rome Webview (#7908)

* Rename Arc to Arc Search
* Improves detection for Arc Search
* Improves detection for Chrome Webview
  • Loading branch information
liviuconcioiu authored Nov 7, 2024
1 parent 3f25089 commit aac3ddc
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Browser extends AbstractClientParser
'AW' => 'Amiga Aweb',
'PN' => 'APN Browser',
'6A' => 'Arachne',
'RA' => 'Arc',
'RA' => 'Arc Search',
'R5' => 'Armorfly Browser',
'AI' => 'Arvin',
'AK' => 'Ask.com',
Expand Down
26 changes: 24 additions & 2 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7930,7 +7930,7 @@
user_agent: ArcMobile2/1 CFNetwork/1494.0.5 Darwin/23.4.0
client:
type: browser
name: Arc
name: Arc Search
version: ""
engine: WebKit
engine_version: ""
Expand Down Expand Up @@ -9435,7 +9435,7 @@
user_agent: ArcMobile2/1.3.1; iPhone; iOS 16.1.1; Scale/2.00
client:
type: browser
name: Arc
name: Arc Search
version: 1.3.1
engine: WebKit
engine_version: ""
Expand Down Expand Up @@ -10339,3 +10339,25 @@
engine: Blink
engine_version: 116.0.5845.190
family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.60 Mobile Safari/537.36
client:
type: browser
name: Arc Search
version: ""
engine: Blink
engine_version: 130.0.6723.60
family: Chrome
headers:
http-x-requested-with: company.thebrowser.arc
-
user_agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
client:
type: browser
name: Chrome Webview
version: ""
engine: Blink
engine_version: 123.0.0.0
family: Chrome
headers:
http-x-requested-with: com.android.webview
4 changes: 2 additions & 2 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@
engine:
default: 'Blink'

# Arc (https://arc.net/)
# Arc Search (https://arc.net/ | https://arc.net/search)
- regex: 'ArcMobile2(?:/(\d+\.[.\d]+);)?'
name: 'Arc'
name: 'Arc Search'
version: '$1'
engine:
default: 'WebKit'
Expand Down
2 changes: 2 additions & 0 deletions regexes/client/hints/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,5 @@
'com.hawk.android.browser': 'Hawk Turbo Browser'
'com.zte.nubrowser': 'ZTE Browser'
'com.cloaktp.browser': 'Privacy Pioneer Browser'
'company.thebrowser.arc': 'Arc Search'
'com.android.webview': 'Chrome Webview'

0 comments on commit aac3ddc

Please sign in to comment.