New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 794297 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug
Proj-XR



Sign in to add a comment

VR: Exiting WebVR presentation while waiting for frame returns to waiting for frame.

Project Member Reported by mthiesse@chromium.org, Dec 12 2017

Issue description

1. Enter presentation on a WebVR site that doesn't produce frames.
2. Press the app button to exit before the spinner shows up.
3. Spinner shows up after exiting WebVR presentation.

Not sure if this is present in M-64.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Dec 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8c2f6b3dd7a06a5f9ede992f3fe1a433397ba59b

commit 8c2f6b3dd7a06a5f9ede992f3fe1a433397ba59b
Author: Ian Vollick <vollick@chromium.org>
Date: Wed Dec 13 00:16:16 2017

[vr] Cancel webvr timeouts when exiting presentation

Previously, we'd leave presentation but the timeouts would still be
active. This could result in the timeout UI showing, even when using the
2D browsing UI.

Bug:  794297 
Change-Id: I89ba432f00cd27ae585f15a560d5212efca8798b
Reviewed-on: https://chromium-review.googlesource.com/823155
Commit-Queue: Ian Vollick <vollick@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523615}
[modify] https://crrev.com/8c2f6b3dd7a06a5f9ede992f3fe1a433397ba59b/chrome/browser/android/vr_shell/vr_gl_thread.cc
[modify] https://crrev.com/8c2f6b3dd7a06a5f9ede992f3fe1a433397ba59b/chrome/browser/android/vr_shell/vr_shell_gl.cc
[modify] https://crrev.com/8c2f6b3dd7a06a5f9ede992f3fe1a433397ba59b/chrome/browser/android/vr_shell/vr_shell_gl.h

Labels: -M-65 M-64 Merge-Request-64
Project Member

Comment 3 by sheriffbot@chromium.org, Dec 16 2017

Labels: -Merge-Request-64 Hotlist-Merge-Review Merge-Review-64
This bug requires manual review: M64 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: OS-Android
I guess this would be affecting Android?

Comment 5 by cmasso@google.com, Dec 18 2017

Please provide the rational as to why this should be merged into M64
@4, yes, that's right.
@5, without this change, our UI will become unusable if we leave VR presentation at the wrong time. The change is fairly trivial and only affects VR browsing, so I think that this is low risk.

Comment 7 by cma...@chromium.org, Dec 19 2017

Labels: -Hotlist-Merge-Review -Merge-Review-64 Merge-Approved-64
Project Member

Comment 8 by bugdroid1@chromium.org, Dec 22 2017

Labels: -merge-approved-64 merge-merged-3282
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/168c2fcc2d217217d304749378e075254f3b6b4a

commit 168c2fcc2d217217d304749378e075254f3b6b4a
Author: Ian Vollick <vollick@chromium.org>
Date: Fri Dec 22 20:46:45 2017

[vr] Cancel webvr timeouts when exiting presentation

Previously, we'd leave presentation but the timeouts would still be
active. This could result in the timeout UI showing, even when using the
2D browsing UI.

TBR=vollick@chromium.org

(cherry picked from commit 8c2f6b3dd7a06a5f9ede992f3fe1a433397ba59b)

Bug:  794297 
Change-Id: I89ba432f00cd27ae585f15a560d5212efca8798b
Reviewed-on: https://chromium-review.googlesource.com/823155
Commit-Queue: Ian Vollick <vollick@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#523615}
Reviewed-on: https://chromium-review.googlesource.com/843164
Reviewed-by: Ian Vollick <vollick@chromium.org>
Cr-Commit-Position: refs/branch-heads/3282@{#345}
Cr-Branched-From: 5fdc0fab22ce7efd32532ee989b223fa12f8171e-refs/heads/master@{#520840}
[modify] https://crrev.com/168c2fcc2d217217d304749378e075254f3b6b4a/chrome/browser/android/vr_shell/vr_gl_thread.cc
[modify] https://crrev.com/168c2fcc2d217217d304749378e075254f3b6b4a/chrome/browser/android/vr_shell/vr_shell_gl.cc
[modify] https://crrev.com/168c2fcc2d217217d304749378e075254f3b6b4a/chrome/browser/android/vr_shell/vr_shell_gl.h

Status: Fixed (was: Assigned)
Status: Assigned (was: Fixed)
Ian, for the repro steps, what page should I use in step one? Thanks.
Status: Fixed (was: Assigned)
I don't think we currently have any. What you could do is throw a breakpoint in to pause the page when it's about to call submitFrame and simulate it that way.

We should create a set of error pages to test stuff like this.
 Issue 800076  tracks writing such a page.
Status: Assigned (was: Fixed)
Ian, could you confirm that the following is a good test case: (Anna created a test page in  bug 800076 )

1. Go to https://webvr.info/samples/test-slow-render.html?noFrames=true
2. Press enter VR button and insert device into headset
3. Verify that you see the following:

- spinner
- "The page isnt responding, you can wait for it to exit" msg
- an X "Exit" button

4. Press the X "Exit" button and verify ... (I'm a little confused here, because even if I went from 2D Chrome straight to WebVR, hitting the X button here takes me to Chrome VR. Should that be the case?)

... that the WebVR presentation returns to (2D mode or Chrome VR?). 

Thanks!

Comment 14 by ericde@google.com, Jan 20 2018

Labels: -M-64 M-65
moving to M65 as this will not block M64 ("this" being to review/add a test case as indicated in c#13 above.
Yes, that page does the right thing. If it summons the spinner and page-not-responding UI, then you're good. Your question about whether we should return to 2D or VR browsing is a good, but separate, question. I'll follow up offline about that.
Labels: -OS-Android
Status: Fixed (was: Assigned)
Labels: OS-Android
dbbrooks@: The current behavior (exiting to the VR browser) feels appropriate here. If the user wants to go back to 2D Chrome they must take the headset off and remove the phone anyway, at which point the Daydream platform has a well established convention for exiting the VR app. ("X" in the upper left corner.) Given that scenario is well supported by the default platform behavior I doubt you'll get many users confused about how to return to 2D. So it seems clear that if the user leaves the headset on they almost certainly want to continue using VR.
Labels: Test-Manual
Labels: -Test-Manual Test-Complete
Components: Blink>WebXR

Sign in to add a comment