From f300478bdc8ccdbabfbb2162d6f045525d94d281 Mon Sep 17 00:00:00 2001 From: Faisal Salman Date: Thu, 19 Jun 2025 00:14:25 +0700 Subject: [PATCH] Identify device that uses Firefox Reality / Wolvic as an XR device --- src/main/ua-parser.js | 4 +++- test/data/ua/device/_others.json | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/main/ua-parser.js b/src/main/ua-parser.js index 43f6a1a..f34933b 100755 --- a/src/main/ua-parser.js +++ b/src/main/ua-parser.js @@ -886,6 +886,8 @@ ], [VENDOR, MODEL, [TYPE, XR]], [ /(quest( \d| pro)?s?).+vr/i // Meta Quest ], [MODEL, [VENDOR, FACEBOOK], [TYPE, XR]], [ + /mobile vr; rv.+firefox/i // Unidentifiable VR device using Firefox Reality / Wolvic + ], [[TYPE, XR]], [ /////////////////// // EMBEDDED @@ -897,7 +899,7 @@ ], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [ /(homepod).+mac os/i // Apple HomePod ], [MODEL, [VENDOR, APPLE], [TYPE, EMBEDDED]], [ - /windows iot/i + /windows iot/i // Unidentifiable embedded device using Windows IoT ], [[TYPE, EMBEDDED]], [ //////////////////// diff --git a/test/data/ua/device/_others.json b/test/data/ua/device/_others.json index a270c00..55329b3 100644 --- a/test/data/ua/device/_others.json +++ b/test/data/ua/device/_others.json @@ -290,6 +290,24 @@ "type": "smarttv" } }, + { + "desc": "Unknown VR Device using Firefox Reality", + "ua": "Mozilla/5.0 (Android 10; Mobile VR; rv:123.0) Gecko/123.0 Firefox/123.0", + "expect": { + "vendor": "undefined", + "model": "undefined", + "type": "xr" + } + }, + { + "desc": "Unknown VR Device using Wolvic", + "ua": "Mozilla/5.0 (Android 14; Mobile VR; rv:128.0) Gecko/128.0 Firefox/128.0 Wolvic/1.8", + "expect": { + "vendor": "undefined", + "model": "undefined", + "type": "xr" + } + }, { "desc": "Smart TV", "ua": "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 HbbTV/1.6.1 ( DRM; LGE/ATMACA/GRAETZ; GR32S1470; WEBOS22 04.41.53; W22_K8AP; DTV_C22L;) LaTivu_1.0.1_2022",