Skip to content

Commit f300478

Browse files
committed
Identify device that uses Firefox Reality / Wolvic as an XR device
1 parent ee88f16 commit f300478

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/main/ua-parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@
886886
], [VENDOR, MODEL, [TYPE, XR]], [
887887
/(quest( \d| pro)?s?).+vr/i // Meta Quest
888888
], [MODEL, [VENDOR, FACEBOOK], [TYPE, XR]], [
889+
/mobile vr; rv.+firefox/i // Unidentifiable VR device using Firefox Reality / Wolvic
890+
], [[TYPE, XR]], [
889891

890892
///////////////////
891893
// EMBEDDED
@@ -897,7 +899,7 @@
897899
], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [
898900
/(homepod).+mac os/i // Apple HomePod
899901
], [MODEL, [VENDOR, APPLE], [TYPE, EMBEDDED]], [
900-
/windows iot/i
902+
/windows iot/i // Unidentifiable embedded device using Windows IoT
901903
], [[TYPE, EMBEDDED]], [
902904

903905
////////////////////

test/data/ua/device/_others.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,24 @@
290290
"type": "smarttv"
291291
}
292292
},
293+
{
294+
"desc": "Unknown VR Device using Firefox Reality",
295+
"ua": "Mozilla/5.0 (Android 10; Mobile VR; rv:123.0) Gecko/123.0 Firefox/123.0",
296+
"expect": {
297+
"vendor": "undefined",
298+
"model": "undefined",
299+
"type": "xr"
300+
}
301+
},
302+
{
303+
"desc": "Unknown VR Device using Wolvic",
304+
"ua": "Mozilla/5.0 (Android 14; Mobile VR; rv:128.0) Gecko/128.0 Firefox/128.0 Wolvic/1.8",
305+
"expect": {
306+
"vendor": "undefined",
307+
"model": "undefined",
308+
"type": "xr"
309+
}
310+
},
293311
{
294312
"desc": "Smart TV",
295313
"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",

0 commit comments

Comments
 (0)