Closed Bug 1169665 Opened 9 years ago Closed 9 years ago

enumerateDevices should never fail with NotFoundError

Categories

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

39 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: jib, Assigned: jib)

References

Details

Attachments

(1 file)

On systems with neither microphones nor cameras, navigator.mediaDevices.enumerateDevices() fails with NotFoundError. From https://travis-ci.org/webrtc/adapter/jobs/64569540 : > not ok 16 enumerateDevices() must succeed - NotFoundError: The object can not be found here. The spec says it should return an empty array in this case, so this is a spec violation.
Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail
Attachment #8613680 - Flags: review?(rjesup)
Assignee: nobody → jib
https://reviewboard.mozilla.org/r/9767/#review8585 I want to say r+, but mozreview won't let me. :-( ::: dom/media/MediaManager.cpp:367 (Diff revision 1) > + if (mPrivileged) { If we have to explain that "privileged" actually means X, then let's rename it.
Attachment #8613680 - Flags: review?(rjesup) → review+
Comment on attachment 8613680 [details] MozReview Request: Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail. r=jesup Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail. r=jesup
Attachment #8613680 - Attachment description: MozReview Request: Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail → MozReview Request: Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail. r=jesup
Attachment #8613680 - Flags: review+
Attachment #8613680 - Flags: review+
Comment on attachment 8613680 [details] MozReview Request: Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail. r=jesup https://reviewboard.mozilla.org/r/9769/#review8617 Ship It!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: