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

Issue 738209 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug
Proj-XR
Proj-XR-VR

Blocked on:
issue 732905

Blocking:
issue 808723



Sign in to add a comment

Allow permission-requiring features in VR if the permission is already granted

Project Member Reported by ddorwin@chromium.org, Jun 29 2017

Issue description

Chrome Version       : 61.0.3143.0

Permission-requiring features are currently disabled while in VR (both in the browser and WebVR) because the permission UIs are not yet supported. ( Issue 736568  contains references to many of these.)

If the user has already granted permission to an origin and the page has started using the feature, the page can continue to use the feature when inserted into the headset (the VR browser displays an indicator for some features).

However, if the page does not start using the feature, for which the origin has permission, before the user enters VR (including upon navigation within VR), the page is not allowed to use the feature.

Given that we allow the features at all, it's not clear why they aren't always allowed when a permission has already been granted. Such inconsistency seems likely to confuse users even more than the fact that permissions must be granted beforehand.

We should always allow features for which the origin has already been granted permission. While there may be corner cases, such as the user has revoked an Android permission from Chrome, that is an unlikely corner case.
 
Labels: -Pri-1 Pri-2
If we fix this for this release we also need show the relevant indicators in WebVR (briefly) when the site begins using the feature. This will be particularly important for launch from DDH where the user would not have previously seen any 2D version of the site.

This is not a must for BBB IMO. The workaround is for the site to begin using the desired feature before it is in VR (this wouldn't be an option for DDH WebVR sites right now but this isn't a major limitation). Dropping to P2.
Blockedon: 732905
Per issue 721367, we must implement issue 732905 before making this change.
Components: Privacy
Components: Blink>WebVR
Labels: -M-61 M-62
Labels: -M-62 M-63
Cc: -asimjour@chromium.org
Owner: asimjour@chromium.org
Status: Assigned (was: Available)
Labels: -M-63
Labels: M-65
Cc: asimjour@chromium.org
Owner: gordonbrander@chromium.org
 Gordon, this is blocked on the UX design. Please assign it back to me when the UX is ready.
Blocking: 808723
Owner: asimjour@chromium.org
Labels: -Pri-2 -M-65 M-66 Pri-1
Project Member

Comment 14 by bugdroid1@chromium.org, Feb 27 2018

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

commit 10ae6b6d286f7d5abcfa7981b56226465185034b
Author: Amirhossein Simjour <asimjour@chromium.org>
Date: Tue Feb 27 00:16:10 2018

VR - Enable PermissionDialog with ModalDialogView in VR

When we are in VR, we can enabled the ModalDialogView for
PermissionDialogs. This won't change anything for 2D users.
This will also impact the auto reject of the permission requests in
VR. As a result, if the permission is already granted, the website
will be able to use it.
(All of this is behind flag VrBrowsingNativeAndroidUi)

BUG= 811134 ,779126, 738209 

Change-Id: Ic30362acc53c1e7b15a9d9e54457d1c7b3776a2d
Reviewed-on: https://chromium-review.googlesource.com/926882
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539327}
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/android/java/src/org/chromium/chrome/browser/permissions/PermissionDialogController.java
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/browser/android/tab_web_contents_delegate_android.cc
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/browser/media/android/router/media_router_dialog_controller_android.cc
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/browser/permissions/permission_manager.cc
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/browser/permissions/permission_manager_unittest.cc
[modify] https://crrev.com/10ae6b6d286f7d5abcfa7981b56226465185034b/chrome/browser/permissions/permission_request_manager.cc

Comment 15 by ericde@google.com, Mar 3 2018

Labels: hotlist-vrb-mvp
Labels: -Restrict-View-Google
Amir, is this bug now fixed?
Labels: Test-Manual
Status: Fixed (was: Assigned)
Labels: -Test-Manual Test-Complete
Status: Verified (was: Fixed)
This is covered by the permissions test cases in the "2D UI handling Test Plan".
It has been verified on M66.
Components: Blink>WebXR

Sign in to add a comment