Add new browser: Edge WebView, Edge WebView2

This commit is contained in:
Faisal Salman
2025-05-21 09:58:01 +07:00
parent 64a933bae8
commit 29677bcd3d
5 changed files with 52 additions and 4 deletions

View File

@@ -2229,6 +2229,26 @@
"major" : "74"
}
},
{
"desc" : "Microsoft Edge WebView",
"ua" : "Mozilla/5.0 (Windows IoT 10.0; Android 6.0.1; WebView/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Mobile Safari/537.36 Edge/18.17763",
"expect" :
{
"name" : "Edge WebView",
"version" : "18.17763",
"major" : "18"
}
},
{
"desc" : "Microsoft Edge WebView2",
"ua" : "Mozilla/5.0 (Linux; Android 11; SM-G991B Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.120 Mobile Safari/537.36 EdgW/1.0",
"expect" :
{
"name" : "Edge WebView2",
"version" : "91.0.4472.120",
"major" : "91"
}
},
{
"desc" : "Iridium",
"ua" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/43.8 Safari/537.36 Chrome/43.0.2357.132",

View File

@@ -313,6 +313,19 @@ describe('UA-CH Headers tests', () => {
}
}
},
{
headers : {
'sec-ch-ua': '" Not;A Brand";v="99", "Microsoft Edge";v="103", "Chromium";v="103", "Microsoft Edge WebView2";v="104"'
},
expect: {
browser : {
name : 'Edge WebView2',
version : '104',
major : '104',
type : undefined
}
}
},
{
headers : {
'sec-ch-ua': '"Not.A/Brand";v="8", "Chromium";v="114", "HuaweiBrowser";v="114"'