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

Commit

Permalink
Add Ladybird browser (and SerenityOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdellwing committed Sep 29, 2023
1 parent 44978b2 commit f2f3983
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
9 changes: 6 additions & 3 deletions platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@
'NetFront',
'Tasman',
'KHTML',
'Gecko'
'Gecko',
{ 'label': 'LibWeb', 'pattern': 'Ladybird' }
]);

/* Detectable browser names (order is important). */
Expand Down Expand Up @@ -402,7 +403,8 @@
{ 'label': 'Firefox for iOS', 'pattern': 'FxiOS' },
{ 'label': 'IE', 'pattern': 'IEMobile' },
{ 'label': 'IE', 'pattern': 'MSIE' },
'Safari'
'Safari',
'Ladybird'
]);

/* Detectable products (order is important). */
Expand Down Expand Up @@ -496,7 +498,8 @@
'Macintosh',
'Mac',
'Windows 98;',
'Windows '
'Windows ',
'SerenityOS'
]);

/*------------------------------------------------------------------------*/
Expand Down
40 changes: 40 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,46 @@
'version': '11.0'
},

'Ladybird on Linux x86_64': {
'ua': 'Mozilla/5.0 (Linux; x86_64) Ladybird/1.0',
'layout': 'LibWeb',
'name': 'Ladybird',
'os': 'Linux 64-bit',
'version': '1.0'
},

'Ladybird on OSX AArch64': {
'ua': 'Mozilla/5.0 (macOS; AArch64) Ladybird/1.0',
'layout': 'LibWeb',
'name': 'Ladybird',
'os': 'MacOS',
'version': '1.0'
},

'Ladybird on SerenityOS x86_64': {
'ua': 'Mozilla/5.0 (SerenityOS; x86_64) Ladybird/1.0',
'layout': 'LibWeb',
'name': 'Ladybird',
'os': 'SerenityOS 64-bit',
'version': '1.0'
},

'Ladybird on Android x86_64': {
'ua': 'Mozilla/5.0 (Android 10; x86_64) Ladybird/1.0',
'layout': 'LibWeb',
'name': 'Ladybird',
'os': 'Android 10 64-bit',
'version': '1.0'
},

'Ladybird on Android AArch64': {
'ua': 'Mozilla/5.0 (Android 10; AArch64) Ladybird/1.0',
'layout': 'LibWeb',
'name': 'Ladybird',
'os': 'Android 10',
'version': '1.0'
},

'Kindle Browser 3.4 (NetFront) on Amazon Kindle 2.0 (Linux 2.6.22)': {
'ua': 'Mozilla/4.0 (compatible; Linux 2.6.22) NetFront/3.4 Kindle/2.0 (screen 600x800)',
'layout': 'NetFront',
Expand Down

0 comments on commit f2f3983

Please sign in to comment.