-
Notifications
You must be signed in to change notification settings - Fork 218
Update UA for Firefox Reality #478
Comments
cc @bluemarvin @cvan Would it possible to get some comments/opinions here, especially for V1? I think the biggest tradeoff is do we:
|
Switching back to the mobile UA is easiest. To get the VR mobile UA will require some GV work. I assume that means using the mobile viewport with the VR mobile UA. Only desktop UA will not use the mobile viewport. |
Have we considered/allowed to send an additional request header Not that it's a great idea, but it would help servers conditionally serve pages to VR browsers, and if adopted, users could be served a page served for WebVR-optimised more immediately. It doesn't fix the existing sites (using the mobile UA like Oculus Browser and Samsung Browser do), but it could help us as we help sites make their sites more responsive and adaptive to VR browsers, instead of assuming mobile or desktop. That would help for UA-to-server negotiation. As discussed in prior conversations, in terms of client-side detection, CSS media queries could be used. (See w3c/csswg-drafts#2723 and w3c/csswg-drafts#2719.) There's @media (environment-blending: <value>) {
} And @media immersive, screen, projection {
} Or: <link rel="stylesheet" media="screen and (immersive)" href="example.css"> Thoughts? |
Let's go ahead with just changing the default UA to the mobile one, as @bluemarvin suggested. @cvan I love these ideas (and basically anything we can do to avoid too much UA sniffing)! I assume that those changes would require some Gecko-side updates, but we should absolutely dig in on them for V1.1. |
This is done for 1.0 (thanks @bluemarvin!), so moving to 1.1. |
We should get our 1.1 plan ironed out here :-) Last I heard was that we should:
Has that changed? |
UA POR for Firefox Reality
FOR 1.0:
Mozilla/5.0 (Android 9; Mobile; rv:63.0) Gecko/63.0 Firefox/63.0
(default cannot be changed per GV policy)For 1.1
Add an override list for key sites to send alternate UA string to:
-- Mobile UA + "VR" String =
Mozilla/5.0 (Mobile VR; rv: 63.0) Gecko/63.0 Firefox/63.0
-- Desktop UA String =
Mozilla/5.0 (VR; rv: 63.0) Gecko/63.0 Firefox/63.0
Additional feature work:
Related issue:
The text was updated successfully, but these errors were encountered: