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

Issue 840877 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Permissions API not prompting user for camera access

Reported by shachar...@gmail.com, May 8 2018

Issue description

Steps to reproduce the problem:
1. Run this fiddle in Chrome on Android (version specified): https://jsfiddle.net/yzcgbcmk/2/
2. Click on the file input and try to choose a file
3. if it works try clearing site data and redoing from step no. 1

What is the expected behavior?
In the fiddle the camera permission state should show PROMPT but is DENIED. I re-checked on the device in chrome site settings that the camera consent sholud prompt always but it doesn't at all.
This bug didn't occur 1-2 weeks ago.

What went wrong?
Chrome doesn't prompt the user for permissions to use the camera but still opens the file chooser dialog. Chrome gets stuck, displaying a modal saying "Chrome stopped"

Did this work before? Yes same as far as I know

Does this work in other browsers? N/A

Chrome version: 66.0.3359.126  Channel: n/a
OS Version: 6.0.1;SM-J510FN Build/MMB29M
Flash Version: 

Not sure if this has anything to do with clearing site data.
 

Comment 1 Deleted

Tested:
1. Works in Samsung Internet on the same device but doesn't show the permission state (guessing because it isn't supported).
2. In chrome version 66.0.3359.126, OS Android 7.0.0; SM-A520F Build/NRD90M allows access to the camera but shows that the permission state is DENIED. (hope the fiddle is valid...)

hope this helps

Comment 3 Deleted

update:
Apparently the permission state is PROMPT when I browse chrome in this device:
Chrome version: 66.0.3359.126  Channel: n/a
OS Version: 6.0.1;SM-J510FN Build/MMB29M

Chrome doesn't prompt the user and fails to open the camera
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Components: Blink>GetUserMedia
Labels: Triaged-Mobile Needs-Feedback
Tested the issue using #66.0.3359.126 on Android Samsung J7, 7.0.0 and could not reproduce the issue as per the steps mentioned below.

Steps:
1. Launch Browser
2. Run this fiddle in Chrome on Android (version specified): https://jsfiddle.net/yzcgbcmk/2/
3. Click on the file input and try to choose a file
4. Observed camera permission state: PROMPT 
5. Able to open the Camera as well

@Reporter: Could you please find the above observations and help us with a screencast for further triaging of the issue?
See screenshots.
Sorry for the ones that aren't in English.
In order, hopefully:
1. Permissions for the jsfiddle site, no camera permission.
2. Chrome stopped after attempting to open a file chooser after clicking
the file input.
3. Jsfiddle stating that the camera permission state is PROMPT.
4. Permissions for the PWA I'm testing and getting the bug in the specified
device.




בתאריך יום ד׳, 9 במאי 2018, 13:26, מאת sandeepk… via monorail ‏<
monorail+v2.1342645230@chromium.org>:
Project Member

Comment 8 by sheriffbot@chromium.org, May 9 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I saw you tested on Android 7.0.0
The bug occurs on Android 6.0.1 as specified

בתאריך יום ד׳, 9 במאי 2018, 13:59, מאת שחר ננצל ‏<shacharnen@gmail.com>:
Labels: Needs-Feedback
Tested the issue using #66.0.3359.158 on Android Nexus 5; 6.0.1 and could not reproduce the issue as per the steps mentioned below.

Steps:
1. Launch Browser
2. Run this fiddle in Chrome on Android (version specified): https://jsfiddle.net/yzcgbcmk/2/
3. Click on the file input and try to choose a file
4. Observed camera permission state: PROMPT 
5. Able to open the Camera as well

@Reporter: Please find the screenshot and help us with a screencast or screenshot from your end?

Thanks!!
840877.png
107 KB View Download
I replied from gmail with attachments, it didn't attach the files. Sorry about that. See attachments, sorry for non-english details.
Strangely enough it now works. 10 hours ago it didn't.
After checking what changed I saw in chrome settings that the version updated from #66.0.3359.126 to #66.0.3359.158.

Thanks for the thorough response!

Will attach a screencast
site settings jsfiddle.png
36.6 KB View Download
site setting PWA.png
40.8 KB View Download
jsfiddle.png
37.2 KB View Download
file chooser error.png
23.1 KB View Download
Project Member

Comment 12 by sheriffbot@chromium.org, May 10 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
screencast made on a different device:
OS Android #6.0.0
Chrome #66.0.3359.126
bug screencast
11.7 MB View Download
This screencast works. At the end there's a bug report - maybe helpful
bug screencast.mp4
11.7 MB View Download
Requesting Blink>GetUserMedia team for further triaging of the issue as this issue isn't repro from our end on Android 6.0.1, 7.0.0.

Thanks!!
Labels: Needs-Bisect
shacharnen@gmail.com: Thanks for providing the screencast. Unfortunately, I can't understand it. Can you provide one in English?

Also, please clarify what the bug is. 
Your original report says that this went wrong: "Chrome doesn't prompt the user for permissions to use the camera but still opens the file chooser dialog"

However, opening the file chooser does not depend on  any camera permission, so shy shouldn't Chrome open it? Chrome will prompt for permission to use the camera if you call getUserMedia and request video.
Labels: Needs-Feedback
Status: WontFix (was: Unconfirmed)
Closing since no feedback has been provided and it is not clear that this refers to a real bug. Please reopen or file a new bug if this is still an issue and there is more information available.

Sign in to add a comment