Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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