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

Issue 2703283003: Gracefully handle navigator.getVRDisplays() in detached contexts. (Closed)

Created:
3 years, 10 months ago by sof
Modified:
3 years, 10 months ago
Reviewers:
haraken, mthiesse
CC:
chromium-reviews, blink-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gracefully handle navigator.getVRDisplays() in detached contexts. R=haraken BUG=686602 Review-Url: https://codereview.chromium.org/2703283003 Cr-Commit-Position: refs/heads/master@{#451734} Committed: https://chromium.googlesource.com/chromium/src/+/77af5df222bb276283d2c97fccbd91b32de286ce

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -14 lines) Patch
A third_party/WebKit/LayoutTests/vr/getVRDisplays_detached.html View 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.cpp View 7 chunks +34 lines, -14 lines 2 comments Download

Messages

Total messages: 16 (10 generated)
sof
please take a look.
3 years, 10 months ago (2017-02-21 08:24:37 UTC) #4
haraken
LGTM
3 years, 10 months ago (2017-02-21 09:50:23 UTC) #5
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/2703283003/1
3 years, 10 months ago (2017-02-21 11:34:28 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/77af5df222bb276283d2c97fccbd91b32de286ce
3 years, 10 months ago (2017-02-21 11:39:32 UTC) #13
mthiesse
https://codereview.chromium.org/2703283003/diff/1/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp File third_party/WebKit/Source/modules/vr/NavigatorVR.cpp (right): https://codereview.chromium.org/2703283003/diff/1/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp#newcode60 third_party/WebKit/Source/modules/vr/NavigatorVR.cpp:60: ScriptPromise promise = resolver->promise(); nit: Why not remove this ...
3 years, 10 months ago (2017-02-21 15:19:27 UTC) #15
sof
3 years, 10 months ago (2017-02-21 15:29:12 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2703283003/diff/1/third_party/WebKit/Source/m...
File third_party/WebKit/Source/modules/vr/NavigatorVR.cpp (right):

https://codereview.chromium.org/2703283003/diff/1/third_party/WebKit/Source/m...
third_party/WebKit/Source/modules/vr/NavigatorVR.cpp:60: ScriptPromise promise =
resolver->promise();
On 2017/02/21 15:19:27, mthiesse wrote:
> nit: Why not remove this line, and return resolver->promise()?

You have to call promise() before rejecting/resolving.

Powered by Google App Engine
This is Rietveld 408576698