Closed
Bug 823453
Opened 12 years ago
Closed 12 years ago
Media manager needs to accept an array of devices to approve when receiving the getUserMedia:response:allow notification
Categories
(Core :: WebRTC: Audio/Video, defect, P1)
Core
WebRTC: Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: dao, Assigned: jesup)
References
Details
(Whiteboard: [getUserMedia][blocking-gum+][qa-])
Attachments
(1 file, 1 obsolete file)
|
2.67 KB,
patch
|
anant
:
review+
|
Details | Diff | Splinter Review |
See bug 802421 comment 7.
Who can take this? Randell?
Updated•12 years ago
|
Assignee: nobody → rjesup
Priority: -- → P1
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 694399 [details] [diff] [review]
Change gUM permissions response to be an array
Gold star to the first reviewer to step up!
Dao, if you're comfortable reviewing this feel free to step in and do so.
Attachment #694399 -
Flags: review?(tterribe)
Attachment #694399 -
Flags: review?(anant)
| Assignee | ||
Comment 3•12 years ago
|
||
FYI, tested with the patch from bug 802421 and appears happy
| Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 694399 [details] [diff] [review]
Change gUM permissions response to be an array
> if (aSubject) {
>- // A particular device was chosen by the user.
>- // NOTE: does not allow setting a device to null; assumes nullptr
>- nsCOMPtr<nsIMediaDevice> device = do_QueryInterface(aSubject);
>- if (device) {
>+ nsCOMPtr<nsISupportsArray> array(do_QueryInterface(aSubject));
>+ if (array) {
>+ // A particular device or devices were chosen by the user.
The array should always be there -- if it's missing, you can treat that as a failure.
I'm curious what happens when the array is empty, which can happen if we add the "No Video"/"No Audio" options.
| Assignee | ||
Comment 5•12 years ago
|
||
If No Audio and No Video are selected, that's denying access. We can do that on the UI side, or in the backend code - or both. Right now, count of 0 will select default devices instead of no devices, so we need one or the other to consider it a Deny.
| Assignee | ||
Comment 6•12 years ago
|
||
treating empty array as Deny here; could be done as well in UI. Can't test easily since 'No audio' and 'No video' don't appear in the dropdown - they should be added
| Assignee | ||
Updated•12 years ago
|
Attachment #694399 -
Attachment is obsolete: true
Attachment #694399 -
Flags: review?(tterribe)
Attachment #694399 -
Flags: review?(anant)
| Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 694423 [details] [diff] [review]
Change gUM permissions response to be an array
Depending on what we do in the UI we could lose the MOZ_ASSERT(len) as well
Attachment #694423 -
Flags: review?(tterribe)
Attachment #694423 -
Flags: review?(anant)
Comment 8•12 years ago
|
||
Comment on attachment 694423 [details] [diff] [review]
Change gUM permissions response to be an array
Review of attachment 694423 [details] [diff] [review]:
-----------------------------------------------------------------
Look good to me!
Attachment #694423 -
Flags: review?(anant) → review+
| Assignee | ||
Updated•12 years ago
|
Attachment #694423 -
Flags: review?(tterribe)
| Assignee | ||
Comment 9•12 years ago
|
||
Note: needs to land with bug 802421
| Reporter | ||
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Updated•12 years ago
|
Whiteboard: [getUserMedia][blocking-gum+] → [getUserMedia][blocking-gum+][qa-]
Updated•12 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•