New issue
Advanced search Search tips

Issue 746753 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 721412
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Return a wrong Error when camera permission is denied

Reported by leix1.w...@intel.com, Jul 20 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. A depth camera is plugged into the PC
2. Access to https://01org.github.io/web-test-suite/chromium/mediacapture-depth/GUM-deny-manual.https.html
3. When prompted, please deny access to the video stream

What is the expected behavior?
Return a promise rejected with a DOMException object whose name attribute has the value SecurityError when permission is denied.

What went wrong?
Return "PermissionDeniedError" when permission is denied.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3159.0  Channel: canary
OS Version: 10
Flash Version: Shockwave Flash 26.0 r0
 
Cc: kkaluri@chromium.org
Components: Blink>Media>Video
Labels: M-61 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Windows 10, Ubuntu 14.04 and Mac 10.12.5 with chrome Stable #59.0.3071.115, Canary #61.0.3161.0

Till M53 Builds, it has shown the "permission denied" error, and in the lesser builds it has shown "navigator.mediaDevices.getUserMedia is not a function"

Considering this as non-regression, hence marking marking it as Untriaged.

Attaching the screenshot for reference.
746753-M52.PNG
131 KB View Download
746753-M53.PNG
112 KB View Download
Components: -Blink>Media>Video Blink>WebRTC

Comment 3 by guidou@chromium.org, Jul 31 2017

Components: -Blink>WebRTC Blink>GetUserMedia
Owner: guidou@chromium.org
Status: Assigned (was: Untriaged)
Shall we bump this to M62?
According to the spec https://w3c.github.io/mediacapture-main/, the permission failure error changed to NotAllowedError. So update the test case, and the current result is "expected NotAllowedError, but got PermissionDeniedError". And I think it has been included in https://bugs.chromium.org/p/chromium/issues/detail?id=721412. 

Comment 6 by guidou@chromium.org, Aug 29 2017

Labels: -M-61 M-63

Comment 7 by guidou@chromium.org, Oct 16 2017

Mergedinto: 721412
Status: Duplicate (was: Assigned)

Sign in to add a comment