1
0
mirror of https://github.com/lancedikson/bowser synced 2025-12-05 06:02:14 +00:00

Add LibreWolf browser detection support

- Updated Firefox regex to include 'librewolf' pattern in src/parser-browsers.js
- Added test case for LibreWolf in test/acceptance/useragentstrings.yml
- LibreWolf is now correctly detected as Firefox with proper version extraction

Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-22 16:10:31 +00:00
parent e69e2dfde3
commit 2cce86b104
2 changed files with 15 additions and 2 deletions

View File

@ -893,12 +893,12 @@ const browsersList = [
},
},
{
test: [/firefox|iceweasel|fxios/i],
test: [/firefox|iceweasel|fxios|librewolf/i],
describe(ua) {
const browser = {
name: 'Firefox',
};
const version = Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, ua);
const version = Utils.getFirstMatch(/(?:firefox|iceweasel|fxios|librewolf)[\s/](\d+(\.?_?\d+)+)/i, ua);
if (version) {
browser.version = version;

View File

@ -1915,6 +1915,19 @@
engine:
name: "WebKit"
version: "605.1.15"
-
ua: "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 LibreWolf/124.0.2"
spec:
browser:
name: "Firefox"
version: "124.0.2"
os:
name: "Linux"
platform:
type: "desktop"
engine:
name: "Gecko"
version: "20100101"
SeaMonkey:
-
ua: "Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1"