Daosheng Mu
a6cdb3aeb0
Bug 1368990 - Add reftest for verifying onVRPresentChange; r=kip
...
MozReview-Commit-ID: I8cce1eYQV8
--HG--
extra : rebase_source : ff04f5cefeb446f8730f570bdea804b341d1e947
2017-06-07 17:05:04 +08:00
Daosheng Mu
071f8f0124
Bug 1229481 - Part 2: Add draw rect reftest for WebVR; r=kip
...
MozReview-Commit-ID: CnSYFFZS8lP
--HG--
extra : rebase_source : 9f139a9cb96a792aefa329c5c79d423c7a2d0ed5
2017-05-05 19:00:25 +08:00
Daosheng Mu
1b2ff2d010
Bug 1229481 - Part 1: Move VR mochitest to its subfolder; r=kip
...
MozReview-Commit-ID: IK9f7aepBgw
--HG--
rename : dom/vr/test/VRSimulationDriver.js => dom/vr/test/mochitest/VRSimulationDriver.js
rename : dom/vr/test/WebVRHelpers.js => dom/vr/test/mochitest/WebVRHelpers.js
rename : dom/vr/test/mochitest.ini => dom/vr/test/mochitest/mochitest.ini
rename : dom/vr/test/requestPresent.js => dom/vr/test/mochitest/requestPresent.js
rename : dom/vr/test/runVRTest.js => dom/vr/test/mochitest/runVRTest.js
rename : dom/vr/test/test_vrDisplay_exitPresent.html => dom/vr/test/mochitest/test_vrDisplay_exitPresent.html
rename : dom/vr/test/test_vrDisplay_getFrameData.html => dom/vr/test/mochitest/test_vrDisplay_getFrameData.html
rename : dom/vr/test/test_vrDisplay_onvrdisplaydeactivate_crosscontent.html => dom/vr/test/mochitest/test_vrDisplay_onvrdisplaydeactivate_crosscontent.html
rename : dom/vr/test/test_vrDisplay_requestPresent.html => dom/vr/test/mochitest/test_vrDisplay_requestPresent.html
extra : rebase_source : 880f8b75f3d5835d0728037a0bdc9d768ba32124
2017-05-04 12:31:51 +08:00
Kearwood Gilbert
eb3becc0b0
Bug 1362213 - Implement chrome-only API to manage VR sessions r=daoshengmu,kanru,smaug
...
- Added new chrome-only webidl methods to be used by browser UI and WebExtensions
- Implemented bitmasked group visibility for VR sessions to enable switching
between chrome and regular content presentations.
- Implemented throttling mechanism to avoid runaway, unthrottled render loops
for VR sessions that are hidden by group visibility bitmasks or due to
lower level platform VR events, such as during the Oculus
"Health and Safety Warning".
- Simplified the PVRManager IPC protocol while extending it to support
VR session groups and later WebVR content performance profiling API's.
- Removed the last WebVR related sync IPC call.
MozReview-Commit-ID: BMEIPyYeEbq
--HG--
extra : rebase_source : 47d3682cad3d913504175b7d4c3e9d992236f097
2017-05-08 16:01:36 -07:00
Daosheng Mu
911478d912
Bug 1343730 - Part 2: Get the submitframe result from VRDisplay; r=baku,kip
...
MozReview-Commit-ID: 91SqChn6jlO
--HG--
extra : rebase_source : 6254f99af8b4b08857961cebd8491264bfb9b8f5
2017-05-23 17:13:15 +08:00
Honza Bambas
ebccd7c5cc
Bug 1363037 - Add missing gfxVR.h include to VRServiceTest.h to fix bustage. r=kip
...
--HG--
extra : amend_source : 8cef725e5c92c2f472e8299356e67afa67bb4c4e
2017-05-08 07:34:00 -04:00
Wes Kocher
226702fd85
Merge m-c to autoland a=merge
...
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Daosheng Mu
3a6ad95915
Bug 1355648 - Part 3: Set position and orientation IsValid properties for GamepadPose tests; r=kip
...
MozReview-Commit-ID: 29sjo3yhg98
--HG--
extra : rebase_source : afb483713a3e895d81e20d4d8dc3861679f1781e
2017-04-26 13:17:25 +08:00
Daosheng Mu
5c82b1eda6
Bug 1351547 - Part 1: Add WebVR Canvas2D mochitest for detecting crash; r=kip
...
MozReview-Commit-ID: DA8Lx3jGQ4p
---
dom/vr/test/mochitest.ini | 2 ++
dom/vr/test/test_vrDisplay_canvas2d.html | 51 ++++++++++++++++++++++++++++
dom/vr/test/test_vrDisplay_exitPresent.html | 1 -
dom/vr/test/test_vrDisplay_getFrameData.html | 2 +-
4 files changed, 54 insertions(+), 2 deletions(-)
create mode 100644 dom/vr/test/test_vrDisplay_canvas2d.html
2017-04-26 07:00:04 +02:00
Daosheng Mu
324dd505d3
Bug 1358010 - Skip vr mochitests when running on release and non-Windows platforms; r=kip
...
MozReview-Commit-ID: 7TeTXyIfrh
--HG--
extra : rebase_source : 2ac584213841fa7cd47c5678b4d80fbb3bf53b8b
2017-04-20 21:11:17 +08:00
Kearwood Gilbert
c944eed13a
Bug 1356387 - Add constructor to VRHMDSensorState
...
- Also removed some now redundant calls to VRHMDSensorState::Clear()
MozReview-Commit-ID: Kkbvkn3XAP4
--HG--
extra : rebase_source : 0daecf8ad2f4baa8f3d199c65dc7c0cbeb4aceae
2017-04-17 12:15:38 -07:00
Kearwood Gilbert
be29a03181
Bug 1354206 - Prevent VRDisplay.requestAnimationFrame from succeeding after shutdown r=daoshengmu
...
MozReview-Commit-ID: LDw9nH60VCm
--HG--
extra : rebase_source : b8fbcf7573e7c0876293636ac094944f39c000b1
2017-04-12 16:22:29 -07:00
Chih-Yi Leu
068467ef9a
Bug 1311802 - Part3 - Initialize VRHMDSensorstate in VRMockDisplay to prevent crash; r=daoshengmu
...
MozReview-Commit-ID: ArGz64pDgZ7
--HG--
extra : rebase_source : ec2fdd91a1adce3493ebe71f195415416b1d3693
2017-03-30 16:42:25 +08:00
Chih-Yi Leu
990edba4be
Bug 1311802 - Part2 - Add Mochitest implementation; r=daoshengmu
...
MozReview-Commit-ID: K9Z0AWIi9Yp
MozReview-Commit-ID: DJ8lO4zsFjn
--HG--
extra : rebase_source : 2501f6b6a20e23e4104a58ea51082abf817e77af
2017-03-30 12:02:37 +08:00
Chih-Yi Leu
8aea1c1b28
Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
...
MozReview-Commit-ID: 7MFHIri2Bq7
--HG--
extra : rebase_source : 7c3c690d76d184c6bca8465e4b992ae0d8de7507
2017-03-27 11:26:19 +08:00
Andrew McCreight
bb0ab7f9cb
Bug 1353877 - Don't leak intermediate string in VRServiceTest::AttachVRDisplay. r=froydnj
...
MozReview-Commit-ID: AR5nTS6KULg
--HG--
extra : rebase_source : a8bd7865ce50984e800076fb3032592542843df8
2017-04-05 15:01:28 -07:00
Kearwood Gilbert
f12b0d6228
Bug 1353481 - When vrdisplayactivate is triggered by link traversal, VRDisplay.requestPresent should relax the user gesture requirement r=daoshengmu
...
MozReview-Commit-ID: 8viFBiY8A6m
--HG--
extra : rebase_source : 67ad50e7c6389d2fa6406aef4a979a50fc744c8d
2017-04-04 11:27:14 -07:00
Iris Hsiao
98b769cf18
Backed out the accidental backout of the backout of 3 changesets (bug 1311802). r=backout/reland
...
Backed out changeset 44bd57c9340f (bug 1311802)
Backed out changeset 4bb94cbb9a24 (bug 1311802)
Backed out changeset 15d9c5895041 (bug 1311802)
2017-03-31 10:11:19 +02:00
Sebastian Hengst
2374426ebe
Backed out changeset 7e3f9a865413 (bug 1311802) for failing browser/base/content/test/static/browser_parsable_css.js. r=backout
2017-03-31 10:08:21 +02:00
Iris Hsiao
f55fc8d7c5
Backed out 3 changesets (bug 1311802) for mochitest failures in test_vrDisplay_onvrdisplaydeactivate_crosscontent.html
...
Backed out changeset 44bd57c9340f (bug 1311802)
Backed out changeset 4bb94cbb9a24 (bug 1311802)
Backed out changeset 15d9c5895041 (bug 1311802)
2017-03-31 14:35:43 +08:00
Chih-Yi Leu
965c09b783
Bug 1311802 - Part3 - Initialize VRHMDSensorstate in VRMockDisplay to prevent crash; r=daoshengmu
...
MozReview-Commit-ID: ArGz64pDgZ7
--HG--
extra : rebase_source : c26317b727ed8abc166ffcb6c32ca529abd3d751
2017-03-30 16:42:25 +08:00
Chih-Yi Leu
77f9b81b79
Bug 1311802 - Part2 - Add Mochitest implementation; r=daoshengmu
...
MozReview-Commit-ID: K9Z0AWIi9Yp
--HG--
extra : rebase_source : 57189d1a951785a64add14036bfd9a1f00507508
2017-03-30 12:02:37 +08:00
Chih-Yi Leu
87da0a5295
Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
...
MozReview-Commit-ID: 7MFHIri2Bq7
--HG--
extra : rebase_source : 87c33bc5f06e6bcf53b72cae398ee72873c883cf
2017-03-27 11:26:19 +08:00
Chih-Yi Leu
6b60ce5c0a
Bug 1306505 - Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation; r=daoshengmu
...
MozReview-Commit-ID: JSOhDU565gt
--HG--
extra : rebase_source : 01641425c59f615615cc97374968382d5c9261c7
2017-03-23 10:49:45 +08:00
Daosheng Mu
7365b64923
Bug 1306493
- Part 6: disable require gesture when running VR tests; r=kip
...
MozReview-Commit-ID: EGTumxkgcDW
--HG--
extra : rebase_source : f9448d700c6b58c7aaa865e5f73e9265240f5569
2017-03-16 11:46:22 +08:00
Daosheng Mu
1785cdc8c9
Bug 1306493
- Part 4: Make timestamp to be a monotonically increasing value in VRMockDisplay; r=kip
...
MozReview-Commit-ID: COR9n3fQBTX
--HG--
extra : rebase_source : 373621c4f46ad438b7ba2ae5555965025e46ce23
2017-03-15 13:49:39 +08:00
Daosheng Mu
df416a1cc2
Bug 1306493
- Part 3: Add VRDisplay getFrameData test for WebVR; r=kip
...
MozReview-Commit-ID: CEufWUY7xNZ
--HG--
extra : rebase_source : c1ce7948fde9ad75aad945facff25bba1d3fe794
2017-03-13 13:10:33 +08:00
Daosheng Mu
c7e761255a
Bug 1306493
- Part 2: Make vrMockDisplay to be the global var in VRSimulationDriver; r=kip
...
MozReview-Commit-ID: HTHqehkUMwC
--HG--
extra : rebase_source : dee4245fcdee8f054703287fc5c321bd55ffc8f1
2017-03-13 13:09:19 +08:00
Daosheng Mu
f09c777451
Bug 1306493
- Part 1: Fix bug of getting frame data from VRPuppet; r=kip
...
MozReview-Commit-ID: L8gPVjxELtV
--HG--
extra : rebase_source : 1790c8970e5401c1e0c4431c947f9bdad2fa2c34
2017-03-13 13:07:48 +08:00
Kearwood Gilbert
407247f33d
Bug 1254776 - VRDisplay.requestPresent must succeed only when called from a user-gesture or trusted event,r=qdot
...
MozReview-Commit-ID: 4BugtHPRekG
2017-03-07 16:04:12 -08:00
Daosheng Mu
73147a8a4c
Bug 1323328 - Part 4: Delay create VRSystemManagerPuppet for making it only be run for tests; r=kip
...
MozReview-Commit-ID: 6RxFheaP1sg
--HG--
extra : rebase_source : 6ceccf9068b8d38e94890f5543c512d5b40639bf
2017-03-04 01:27:22 +08:00
Daosheng Mu
d7b6a3ff79
Bug 1323328 - Part 3: Add VR display request present mochitest; r=kip
...
MozReview-Commit-ID: 13WuFhUFcTo
--HG--
extra : rebase_source : 00d5c0f36f3550c19367c4a9b6882c10175a0862
2017-03-02 00:00:23 +08:00
Daosheng Mu
6021ede12b
Bug 1323328 - Part 1: Implement VRServiceTest for helping insert VR test data; r=baku,kip
...
MozReview-Commit-ID: 9IoUL6MEVGj
--HG--
extra : rebase_source : 7eb854436f0424120e8dbda550c5cb4d922ae277
2017-03-01 18:33:28 +08:00
Kearwood Gilbert
5912cbf416
Bug 1293793 - Ensure VRFrameData.timestamp is a monotonically increasing value r=daoshengmu
...
- Oculus and OSVR VRFrameData.timestamp values were already returning correct
timestamps using their respective API's timestamp functions.
- OpenVR is now using timestamp values returned by the OpenVR API.
- A pseudo-random base for VRFrameData.timestamp has been implemented
in order to avoid leaking details related to how long the user has
been using their VR headset before hitting a page.
- More details on timestamp base within code comments...
MozReview-Commit-ID: 7VdiRn7l8Rb
--HG--
extra : rebase_source : cde5bc9de07cd120294ccd4ef502af030da9d03c
2017-03-03 15:17:19 -08:00
Kearwood Gilbert
91dea74162
Bug 1343666 - Prevent crash on shutdown due to assertion in VRManagerChild::Get() r=daoshengmu
...
- Updated VREventObserver::DisconnectFromOwner() to call VRManagerChild::IsCreated()
before calling the accessor VRManageRchild::Get() containing the assertion.
MozReview-Commit-ID: Ezy08m6V4HV
--HG--
extra : rebase_source : c6631dafa496cb03333ed417c14f1ff1692c8519
2017-03-02 13:07:24 -08:00
Kearwood Gilbert
9d394c09bb
Bug 1335606 - Add 'display' value to Navigator.vrdisplayconnect, Navigator.vrdisplaydisconnect, and Navigator.vrdisplaypresentchange events r=smaug
...
MozReview-Commit-ID: FLZ7u98mqqi
--HG--
extra : rebase_source : dd783f3c085efc50c4114ea45ac3f695670079fd
2017-02-14 11:21:09 -08:00
Kearwood Gilbert
ba5b7895c1
Bug 1337441 - Prevent crash when accessing VRDisplayEvent.display within onvrdisplayactivate r=Ehsan
...
- A non-null value is now always returned, as VRDisplayEvent.display
is required.
MozReview-Commit-ID: IrE2a7rw3Co
--HG--
extra : rebase_source : ca27aa588e49a8e19cc29114dd477e84e39bacef
2017-02-09 17:46:18 -08:00
Joel Maher
c203f27827
Bug 1335099 - add BUG_COMPONENT to many dom/* subdir files. r=overholt
...
MozReview-Commit-ID: CyIIs98hnUI
2017-02-06 09:45:55 -05:00
Sebastian Hengst
7225ec6170
Backed out changeset 9a332af74af5 (bug 1335099) for build bustage (moz.build rule matches no files). r=backout on a CLOSED TREE
2017-02-06 16:21:20 +01:00
Joel Maher
60e61eed48
Bug 1335099 - add BUG_COMPONENT to many dom/* subdir files. r=overholt
...
MozReview-Commit-ID: CyIIs98hnUI
2017-02-06 09:45:55 -05:00
Kearwood (Kip) Gilbert
8dc97eb398
Bug 1293333 - Part 1: Implement window.onvrdisplayactivate and window.onvrdisplaydeactivate events r=daoshengmu,Ehsan
...
MozReview-Commit-ID: 746L5KObBcg
--HG--
extra : rebase_source : 3efa9171be4ec2aa6dc12bd4651e197571cf33c6
2016-10-18 18:18:10 -04:00
Olli Pettay
0364dbc792
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
...
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Kearwood (Kip) Gilbert
53f4153710
Bug 1315543 - Eliminate UAF in Navigator::NotifyVRDisplaysUpdated,r=dmu
2016-11-24 11:50:43 -08:00
Andrew McCreight
14fad12fec
Bug 1317258 - Call HoldJSObjects in VRFrameData's ctor. r=smaug
...
--HG--
extra : rebase_source : b9143b7c02652002923222b908b96bcc88a8effc
2016-11-17 15:37:25 +01:00
Daosheng Mu
7168326772
Bug 1299932 - Part 1: Implement gamepadPose attribute in Gamepad API; r=kip,qdot
...
MozReview-Commit-ID: DiJadVc2TyE
--HG--
extra : rebase_source : f4571090518a084b6d4b1e6fccf951510b227fbd
2016-10-24 18:04:41 +08:00
Jon Coppeard
556585c65f
Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8
2016-10-18 17:58:19 +01:00
kearwood
a9750ed3cd
Bug 1306486 - Ensure that VRDisplay.getPose and VRDisplay.getFrameData return the same values until the next VRDisplay.submitFrame,r=dmu
...
--HG--
extra : rebase_source : 3185cf5b978849c9a748a3c08b13259e5dcd9a22
2016-10-06 16:32:16 -07:00
Kearwood (Kip) Gilbert
2743764335
Bug 1306427 - Remove pose parameter from VRDisplay.submitFrame,r=smaug,r=gw280
...
MozReview-Commit-ID: LZSDm73XrIa
--HG--
extra : rebase_source : 9627a96ad333e952795ed70af0f8878a21c3c697
2016-09-30 16:43:24 -07:00
Kearwood (Kip) Gilbert
ae21916d63
Bug 1306422 - VRDisplay.exitPresent must only be allowed by content that started VR Presentation,r=gwright
...
- While fixing the VRDisplay.exitPresent to resolve fail its returned
promise, I noticed that VRDisplay.isPresenting is returning the global
state of the VRDisplay. I have updated this as well in the patch so
that the isPresenting attribute only returns true for VR presentations
started within the same Javascript context.
2016-10-11 15:26:57 -07:00
Kearwood (Kip) Gilbert
ed12a4e09a
Bug 1306468 - Remove VRDisplay.getImmediatePose,r=smaug,r=gwright
...
- The WebVR 1.1 Spec update has removed the VRDisplay.getImmediatePose function.
2016-10-11 15:01:02 -07:00