Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit f2f3983

Browse files
committed
Add Ladybird browser (and SerenityOS)
1 parent 44978b2 commit f2f3983

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

platform.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@
347347
'NetFront',
348348
'Tasman',
349349
'KHTML',
350-
'Gecko'
350+
'Gecko',
351+
{ 'label': 'LibWeb', 'pattern': 'Ladybird' }
351352
]);
352353

353354
/* Detectable browser names (order is important). */
@@ -402,7 +403,8 @@
402403
{ 'label': 'Firefox for iOS', 'pattern': 'FxiOS' },
403404
{ 'label': 'IE', 'pattern': 'IEMobile' },
404405
{ 'label': 'IE', 'pattern': 'MSIE' },
405-
'Safari'
406+
'Safari',
407+
'Ladybird'
406408
]);
407409

408410
/* Detectable products (order is important). */
@@ -496,7 +498,8 @@
496498
'Macintosh',
497499
'Mac',
498500
'Windows 98;',
499-
'Windows '
501+
'Windows ',
502+
'SerenityOS'
500503
]);
501504

502505
/*------------------------------------------------------------------------*/

test/test.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,46 @@
15741574
'version': '11.0'
15751575
},
15761576

1577+
'Ladybird on Linux x86_64': {
1578+
'ua': 'Mozilla/5.0 (Linux; x86_64) Ladybird/1.0',
1579+
'layout': 'LibWeb',
1580+
'name': 'Ladybird',
1581+
'os': 'Linux 64-bit',
1582+
'version': '1.0'
1583+
},
1584+
1585+
'Ladybird on OSX AArch64': {
1586+
'ua': 'Mozilla/5.0 (macOS; AArch64) Ladybird/1.0',
1587+
'layout': 'LibWeb',
1588+
'name': 'Ladybird',
1589+
'os': 'MacOS',
1590+
'version': '1.0'
1591+
},
1592+
1593+
'Ladybird on SerenityOS x86_64': {
1594+
'ua': 'Mozilla/5.0 (SerenityOS; x86_64) Ladybird/1.0',
1595+
'layout': 'LibWeb',
1596+
'name': 'Ladybird',
1597+
'os': 'SerenityOS 64-bit',
1598+
'version': '1.0'
1599+
},
1600+
1601+
'Ladybird on Android x86_64': {
1602+
'ua': 'Mozilla/5.0 (Android 10; x86_64) Ladybird/1.0',
1603+
'layout': 'LibWeb',
1604+
'name': 'Ladybird',
1605+
'os': 'Android 10 64-bit',
1606+
'version': '1.0'
1607+
},
1608+
1609+
'Ladybird on Android AArch64': {
1610+
'ua': 'Mozilla/5.0 (Android 10; AArch64) Ladybird/1.0',
1611+
'layout': 'LibWeb',
1612+
'name': 'Ladybird',
1613+
'os': 'Android 10',
1614+
'version': '1.0'
1615+
},
1616+
15771617
'Kindle Browser 3.4 (NetFront) on Amazon Kindle 2.0 (Linux 2.6.22)': {
15781618
'ua': 'Mozilla/4.0 (compatible; Linux 2.6.22) NetFront/3.4 Kindle/2.0 (screen 600x800)',
15791619
'layout': 'NetFront',

0 commit comments

Comments
 (0)