Closed Bug 1356400 Opened 8 years ago Closed 8 years ago

Promise from navigator.mediaDevices.getUserMedia does not get rejected after denying access to camera

Categories

(Core :: WebRTC: Audio/Video, defect)

55 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ce.ceo, Unassigned)

Details

(Whiteboard: [needinfo 2017-04-19 to reporter])

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 Steps to reproduce: Called navigator.mediaDevices.getUserMedia().catch() Actual results: I denied access to the camera but the catc function was not called Expected results: Catch function should have been called
Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core
Hi Charlie, Thank you for your report. Could you please attach a minimal testcase that reproduces this bug?
Flags: needinfo?(ce.ceo)
Whiteboard: [needinfo 2017-04-19 to reporter]
(In reply to Charlie Hayes from comment #0) > Called navigator.mediaDevices.getUserMedia().catch() As written, the above is valid JS but will do squat. Try: navigator.mediaDevices.getUserMedia().catch(e => console.log(e)) WFM in both release and nightly: http://jsfiddle.net/jib1/srn9db4h/ Also, you reported using Firefox Nightly (55). Can you confirm this? If you're on Firefox release, did you by chance choose "Now Now?" - If so, this is expected [1]. Try "Don't share" instead. If you're still seeing a problem, please reply and we can re-open. Thanks! [1] http://stackoverflow.com/questions/43316453/getusermedia-silently-fails-on-user-declining-permission-to-use-microphone-in-fi
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Flags: needinfo?(ce.ceo)
You need to log in before you can comment on or make changes to this bug.