Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Issue 2329893002: Isolate a presenting VR device from pages other than the one presenting. (Closed)

Created:
4 years, 3 months ago by bajones
Modified:
4 years, 3 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Isolate a presenting VR device from pages other than the one presenting. Prevents a page from reading or resetting the pose of a device which is currently being presented to by a different page, as that potentially creates an information leak between pages. Also prevented pages from beginning presentation if another page is already presenting to a device. This is a little overly aggressive right now, as disallows presentation to more than one device at a time from any page, but that's a reasonable limitation at this point given the rarity of VR hardware. BUG=389343 Committed: https://crrev.com/73ed46b81d0a4da803a9ad25bb217f2aac28709a Cr-Commit-Position: refs/heads/master@{#418771}

Patch Set 1 #

Patch Set 2 : Rebase and added further page isolation logic #

Total comments: 9

Patch Set 3 : Addressed Michael's feedback #

Total comments: 2

Patch Set 4 : Added suggested return #

Patch Set 5 : Fixed style guide violation #

Patch Set 6 : Fixed Android compile bug #

Patch Set 7 : Unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -114 lines) Patch
M device/vr/android/gvr/gvr_device.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M device/vr/android/gvr/gvr_device.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M device/vr/vr_device.h View 1 2 3 4 5 6 1 chunk +7 lines, -8 lines 0 comments Download
M device/vr/vr_device.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M device/vr/vr_device_manager.h View 1 2 3 4 5 6 3 chunks +17 lines, -1 line 0 comments Download
M device/vr/vr_device_manager.cc View 1 2 5 chunks +121 lines, -2 lines 0 comments Download
M device/vr/vr_device_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
M device/vr/vr_service.mojom View 1 1 chunk +4 lines, -3 lines 0 comments Download
M device/vr/vr_service_impl.h View 1 chunk +3 lines, -2 lines 0 comments Download
M device/vr/vr_service_impl.cc View 1 2 chunks +9 lines, -17 lines 0 comments Download
M device/vr/vr_service_impl_unittest.cc View 1 2 3 4 5 6 4 chunks +54 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.h View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.cpp View 1 2 3 4 chunks +33 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 4 chunks +100 lines, -67 lines 0 comments Download

Messages

Total messages: 39 (19 generated)
bajones
mkwst@: Could you review the changes to the .mojom file? mthiesse@ and klausw@: Sanity checks ...
4 years, 3 months ago (2016-09-13 18:01:57 UTC) #3
mthiesse
https://codereview.chromium.org/2329893002/diff/20001/device/vr/vr_device_manager.cc File device/vr/vr_device_manager.cc (right): https://codereview.chromium.org/2329893002/diff/20001/device/vr/vr_device_manager.cc#newcode103 device/vr/vr_device_manager.cc:103: if (service == presenting_service_) { With these checks peppered ...
4 years, 3 months ago (2016-09-13 18:46:15 UTC) #4
bajones
Thanks for the feedback, addressed or commented on everything. https://codereview.chromium.org/2329893002/diff/20001/device/vr/vr_device_manager.cc File device/vr/vr_device_manager.cc (right): https://codereview.chromium.org/2329893002/diff/20001/device/vr/vr_device_manager.cc#newcode103 device/vr/vr_device_manager.cc:103: ...
4 years, 3 months ago (2016-09-13 19:42:57 UTC) #5
mthiesse
lgtm % comment https://codereview.chromium.org/2329893002/diff/20001/device/vr/vr_device_manager.cc File device/vr/vr_device_manager.cc (right): https://codereview.chromium.org/2329893002/diff/20001/device/vr/vr_device_manager.cc#newcode103 device/vr/vr_device_manager.cc:103: if (service == presenting_service_) { On ...
4 years, 3 months ago (2016-09-13 20:01:16 UTC) #6
haraken
https://codereview.chromium.org/2329893002/diff/40001/third_party/WebKit/Source/modules/vr/VRController.cpp File third_party/WebKit/Source/modules/vr/VRController.cpp (right): https://codereview.chromium.org/2329893002/diff/40001/third_party/WebKit/Source/modules/vr/VRController.cpp#newcode151 third_party/WebKit/Source/modules/vr/VRController.cpp:151: resolver->reject(exception); Don't we need to add 'return' here?
4 years, 3 months ago (2016-09-14 00:08:20 UTC) #8
bajones
https://codereview.chromium.org/2329893002/diff/40001/third_party/WebKit/Source/modules/vr/VRController.cpp File third_party/WebKit/Source/modules/vr/VRController.cpp (right): https://codereview.chromium.org/2329893002/diff/40001/third_party/WebKit/Source/modules/vr/VRController.cpp#newcode151 third_party/WebKit/Source/modules/vr/VRController.cpp:151: resolver->reject(exception); On 2016/09/14 00:08:20, haraken wrote: > > Don't ...
4 years, 3 months ago (2016-09-14 00:30:03 UTC) #9
Mike West
mojom LGTM
4 years, 3 months ago (2016-09-14 12:54:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329893002/60001
4 years, 3 months ago (2016-09-14 15:10:09 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/297525)
4 years, 3 months ago (2016-09-14 15:21:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329893002/80001
4 years, 3 months ago (2016-09-14 15:47:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329893002/100001
4 years, 3 months ago (2016-09-14 16:13:20 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/128857)
4 years, 3 months ago (2016-09-14 16:37:02 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329893002/120001
4 years, 3 months ago (2016-09-14 18:18:53 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/293030)
4 years, 3 months ago (2016-09-14 22:03:11 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329893002/120001
4 years, 3 months ago (2016-09-14 22:10:56 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/293468)
4 years, 3 months ago (2016-09-15 02:07:28 UTC) #32
haraken
LGTM
4 years, 3 months ago (2016-09-15 02:13:06 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329893002/120001
4 years, 3 months ago (2016-09-15 02:34:25 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-15 03:53:46 UTC) #37
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 03:55:50 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/73ed46b81d0a4da803a9ad25bb217f2aac28709a
Cr-Commit-Position: refs/heads/master@{#418771}

Powered by Google App Engine
This is Rietveld 408576698