mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 10:50:35 +00:00
Bug 802656: GetUserMediaDevices: Consider no devices available an error r=anant
This commit is contained in:
parent
e49cc9e10e
commit
ecb358d581
@ -162,8 +162,11 @@ public:
|
||||
|
||||
int32_t len = mDevices.Length();
|
||||
if (len == 0) {
|
||||
devices->SetAsEmptyArray();
|
||||
success->OnSuccess(devices);
|
||||
// XXX
|
||||
// We should in the future return an empty array, and dynamically add
|
||||
// devices to the dropdowns if things are hotplugged while the
|
||||
// requester is up.
|
||||
error->OnError(NS_LITERAL_STRING("NO_DEVICES_FOUND"));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user