Closed
Bug 1215147
Opened 9 years ago
Closed 9 years ago
Enable VR API's on FF for Android by default
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox44+ fixed, firefox45 fixed)
RESOLVED
FIXED
Firefox 45
People
(Reporter: caseyyee.ca, Assigned: daoshengmu, NeedInfo)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [webvr])
Attachments
(1 file, 5 obsolete files)
4.98 KB,
patch
|
bzbarsky
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
As per vlad in email thread:
"We should not need the WebVR enabler on mobile. The only thing it does is flip a pref; the only reason webvr is not enabled by default on nightly/dev edition is because of the e10s compat issue. We don't use e10s on mobile, so we can (and should) just enable the WebVR APIs on Nightly/Dev Edition there. "
Updated•9 years ago
|
Product: Firefox → Firefox for Android
Version: 44 Branch → Firefox 44
Assignee | ||
Comment 1•9 years ago
|
||
If you agree that we should enable VR API for Android by default, we can use this patch.
Comment 3•9 years ago
|
||
Who is the right reviewer for this patch?
Sounds like we should get Vlad one this one. He's already marked for NI. Will ping him on it.
Assignee | ||
Comment 5•9 years ago
|
||
V2: Add r=vlad on commit message.
Attachment #8676623 -
Attachment is obsolete: true
Attachment #8677224 -
Flags: review?(vladimir)
Attachment #8677224 -
Flags: review?(vladimir) → review+
I trust enabling WebVR doesn't break a bunch of stuff :)
Flags: needinfo?(snorp)
Nope, shouldn't change anything for fennec, just has some additional APIs available.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(vladimir)
It looks like we also need to flip the switch on dom.vr.cardboard.enabled=true at the same time for this to work. Vlad, can you confirm that this is needed? VR API's don't seem to pickup the device otherwise.
Flags: needinfo?(vladimir)
Assignee | ||
Comment 10•9 years ago
|
||
dom.vr.cardboard.enabled is default to be enabled at Fennec config.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → dmu
Keywords: checkin-needed
Assignee | ||
Comment 11•9 years ago
|
||
Please land attachment 8677224 [details] [diff] [review]
Comment 12•9 years ago
|
||
Hi, this does not apply cleanly:
applying 0001-Bug-1215147-Enable-VR-API-s-on-FF-for-Android-by-def.patch
patching file mobile/android/app/mobile.js
Hunk #1 FAILED at 928
1 out of 1 hunks FAILED -- saving rejects to file mobile/android/app/mobile.js.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working directory
errors during apply, please fix and refresh 0001-Bug-1215147-Enable-VR-API-s-on-FF-for-Android-by-def.patch
could you take a look, thanks!
Flags: needinfo?(dmu)
Keywords: checkin-needed
Assignee | ||
Comment 13•9 years ago
|
||
v2:
Rebase to the latest master branch and regenerate this patch. But, I find nothing special. Tomcat, could help me try to land this attachment again? Thanks a lot.
Attachment #8677224 -
Attachment is obsolete: true
Flags: needinfo?(dmu) → needinfo?(cbook)
Attachment #8679270 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 14•9 years ago
|
||
Keywords: checkin-needed
Comment 15•9 years ago
|
||
(In reply to Daosheng Mu[:daoshengmu] from comment #13)
> Created attachment 8679270 [details] [diff] [review]
> Enable VR API on Firefox for Android (V2)
>
> v2:
> Rebase to the latest master branch and regenerate this patch. But, I find
> nothing special. Tomcat, could help me try to land this attachment again?
> Thanks a lot.
worked now and checkin done in comment #14 :)
Flags: needinfo?(cbook)
Comment 16•9 years ago
|
||
sorry had to back this out for test failures/warning like https://treeherder.mozilla.org/logviewer.html#?job_id=5365884&repo=fx-team
Flags: needinfo?(dmu)
Comment 17•9 years ago
|
||
Comment on attachment 8679270 [details] [diff] [review]
Enable VR API on Firefox for Android (V2)
I missed this the first time around -- this API should only be enabled in nightly/aurora builds, not in release. I think you can use #ifndef RELEASE_BUILD for this purpose.
Flags: needinfo?(vladimir)
Attachment #8679270 -
Flags: review+ → review-
Assignee | ||
Comment 19•9 years ago
|
||
Vlad, thanks for your suggestion. After add #ifndef RELEASE_BUILD, that can solve the test failures.
V3 -
Refer to Comment 18, add #ifndef RELEASE_BUILD for only be enabled in nightly/aurora builds.
Attachment #8679270 -
Attachment is obsolete: true
Attachment #8681570 -
Flags: review?(vladimir)
Assignee | ||
Comment 20•9 years ago
|
||
Attachment #8681570 -
Flags: review?(vladimir) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 23•9 years ago
|
||
Please help land attachment 8681570 [details] [diff] [review] to m-c.
Comment 24•9 years ago
|
||
Keywords: checkin-needed
Comment 25•9 years ago
|
||
backed this out for failures like https://treeherder.mozilla.org/logviewer.html#?job_id=5540074&repo=fx-team - seems its the same like in comment #16
Flags: needinfo?(dmu)
Assignee | ||
Comment 26•9 years ago
|
||
Carsten,
I think I got the problem. I have to modify test_interfaces.html and contact with a DOM peer.
Flags: needinfo?(dmu)
Assignee | ||
Comment 27•9 years ago
|
||
BZ, Please help me take a review on test_interfaces.html. Because we decide to enable VR API on Android by default, I have to make some modifications on it. Let's review it here, and I will close Bug 1219124.
V4 -
Modify test_interfaces.html to allow VR API can be test pass.
Attachment #8681570 -
Attachment is obsolete: true
Attachment #8682896 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 28•9 years ago
|
||
Try link, it looks good.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=89925586d347
Comment 29•9 years ago
|
||
Comment on attachment 8682896 [details] [diff] [review]
Enable VR API on Firefox for Android (V4)
>+#ifndef RELEASE_BUILD
So you're enabling on non-release... but changing the test to say it's enabled on android always. That means the test will fail as soon as you merge to beta. Might be worth asking one of the sheriffs how to do a "pretend I merged to beta" try build.
I assume you want the test to say "android: true, release: false" or something along those lines, no?
Attachment #8682896 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 30•9 years ago
|
||
Hi bz,
Please help me review it again. I have confirmed that I just need to enable it on Firefox Android Nightly. Therefore, I should use "android: true, release: false".
V4 -
Modifying test_interfaces.html to make VR API "release: false". Because we just want to enable it on Nightly.
Attachment #8682896 -
Attachment is obsolete: true
Attachment #8683006 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 31•9 years ago
|
||
Try result is good as well.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b7011f459e7f
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment on attachment 8683006 [details] [diff] [review]
Enable VR API on Firefox for Android (V5)
> I have confirmed that I just need to enable it on Firefox Android Nightly
Just nightly, or nightly and devedition?
r=me if it's "nightly and devedition". If it's really meant to be nightly, both your test changes and the ifdef in mobile.js are wrong.
Attachment #8683006 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 34•9 years ago
|
||
bz,
Yep. It is for nightly and aurora.
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 35•9 years ago
|
||
Please land Attachment #8683006 [details] [diff] to m-c.
Comment 36•9 years ago
|
||
Keywords: checkin-needed
Comment 37•9 years ago
|
||
(In reply to Daosheng Mu[:daoshengmu] from comment #34)
> bz,
>
> Yep. It is for nightly and aurora.
landed now on fx-team and given this patch sticks on the tree it will get merged to m-c then.
For aurora this would need approval requests for aurora
Daosheng, could you please make an aurora uplift request for this patch so it is also fixed in Aurora44?
Flags: needinfo?(dmu)
This seems worth tracking for FF44.
status-firefox44:
--- → affected
tracking-firefox44:
--- → +
Comment 40•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Assignee | ||
Comment 41•9 years ago
|
||
Comment on attachment 8683006 [details] [diff] [review]
Enable VR API on Firefox for Android (V5)
Approval Request Comment
[Feature/regressing bug #]: Enable VR API on Android Firefox by default.
[User impact if declined]: Nope. It would help users enable dom.vr.enabled and needn't do it manually.
[Describe test coverage new/current, TreeHerder]:I have run try tests for Android devices, https://treeherder.mozilla.org/#/jobs?repo=try&revision=b7011f459e7f. And all of them are good.
[Risks and why]: Nope. I just enable additional APIs for users.
[String/UUID change made/needed]: none.
Flags: needinfo?(dmu)
Attachment #8683006 -
Flags: approval-mozilla-aurora?
Vlad, Erin: I might be mistaken but I thought that during the WebVR Go/No Go meeting there was a general consensus that webvr was pushed out to 45. Has that changed? I came upon this when I looked at the Aurora uplift request and would like to confirm if this is planned for Firefox44.
Flags: needinfo?(vladimir)
Flags: needinfo?(elancaster)
pinged Vlad and Erin over email just now.
This is just for Firefox for Android, not Firefox desktop. Enabling general webvr APIs in devedition was pushed out, yes.
Flags: needinfo?(vladimir)
(In reply to Vladimir Vukicevic [:vlad] [:vladv] from comment #44)
> This is just for Firefox for Android, not Firefox desktop. Enabling general
> webvr APIs in devedition was pushed out, yes.
Thanks. In that case I'll approve the aurora44 uplift.
Comment on attachment 8683006 [details] [diff] [review]
Enable VR API on Firefox for Android (V5)
This is planned for Fennec44, let's uplift to Aurora.
Attachment #8683006 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 47•9 years ago
|
||
bugherder uplift |
Comment 48•9 years ago
|
||
Browser compat info updated; see
https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API
(and child pages)
Keywords: dev-doc-needed → dev-doc-complete
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•