Add new browser engine: Servo

This commit is contained in:
Faisal Salman 2024-11-11 19:55:40 +07:00
parent cbe06acaf2
commit 49151e478c
3 changed files with 11 additions and 1 deletions

View File

@ -274,6 +274,7 @@ const Engine = Object.freeze({
NETFRONT: 'NetFront', NETFRONT: 'NetFront',
NETSURF: 'NetSurf', NETSURF: 'NetSurf',
PRESTO: 'Presto', PRESTO: 'Presto',
SERVO: 'Servo',
TASMAN: 'Tasman', TASMAN: 'Tasman',
TRIDENT: 'Trident', TRIDENT: 'Trident',
W3M: 'w3m', W3M: 'w3m',

View File

@ -814,7 +814,7 @@
], [VERSION, [NAME, 'Blink']], [ ], [VERSION, [NAME, 'Blink']], [
/(presto)\/([\w\.]+)/i, // Presto /(presto)\/([\w\.]+)/i, // Presto
/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna/Servo
/ekioh(flow)\/([\w\.]+)/i, // Flow /ekioh(flow)\/([\w\.]+)/i, // Flow
/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, // KHTML/Tasman/Links /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, // KHTML/Tasman/Links
/(icab)[\/ ]([23]\.[\d\.]+)/i, // iCab /(icab)[\/ ]([23]\.[\d\.]+)/i, // iCab

View File

@ -89,6 +89,15 @@
"version" : "2.8.149" "version" : "2.8.149"
} }
}, },
{
"desc" : "Servo",
"ua" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Servo/1.0 Firefox/111.0",
"expect" :
{
"name" : "Servo",
"version" : "1.0"
}
},
{ {
"desc" : "Tasman", "desc" : "Tasman",
"ua" : "Mozilla/4.0 (compatible; MSIE 6.0; PPC Mac OS X 10.4.7; Tasman 1.0)", "ua" : "Mozilla/4.0 (compatible; MSIE 6.0; PPC Mac OS X 10.4.7; Tasman 1.0)",