Closed
Bug 1169665
Opened 11 years ago
Closed 11 years ago
enumerateDevices should never fail with NotFoundError
Categories
(Core :: WebRTC: Audio/Video, defect)
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.
| Assignee | ||
Comment 1•11 years ago
|
||
Bug 1169665 - have enumerateDevices return empty array on zero devices instead of fail
Attachment #8613680 -
Flags: review?(rjesup)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jib
| Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
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.
Updated•11 years ago
|
Attachment #8613680 -
Flags: review?(rjesup) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
https://reviewboard.mozilla.org/r/9767/#review8615
"Ship it!" == r+.
| Assignee | ||
Comment 5•11 years ago
|
||
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+
| Assignee | ||
Updated•11 years ago
|
Attachment #8613680 -
Flags: review+
| Assignee | ||
Comment 6•11 years ago
|
||
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!
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•