mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 802656: GetUserMediaDevices: Consider no devices available an error r=anant
This commit is contained in:
parent
73c5357eab
commit
e73ad3f0ef
@ -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