mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 22:13:31 +00:00
Bug 802397: Work around JS engine bug 449811 to select correct mic/camera r=dolske
This commit is contained in:
parent
8db42bb62c
commit
0c213564d3
@ -90,6 +90,8 @@ function prompt(aBrowser, aCallID, aAudioRequested, aVideoRequested, aDevices) {
|
||||
if (selectableDevices.length > 1) {
|
||||
let selectableDeviceNumber = 0;
|
||||
for (let device of selectableDevices) {
|
||||
// See bug 449811 for why we do this
|
||||
let actual_device = device;
|
||||
selectableDeviceNumber++;
|
||||
secondaryActions.push({
|
||||
label: stringBundle.getFormattedString(
|
||||
@ -99,7 +101,7 @@ function prompt(aBrowser, aCallID, aAudioRequested, aVideoRequested, aDevices) {
|
||||
[ device.name ]),
|
||||
accessKey: selectableDeviceNumber,
|
||||
callback: function () {
|
||||
Services.obs.notifyObservers(device, "getUserMedia:response:allow", aCallID);
|
||||
Services.obs.notifyObservers(actual_device, "getUserMedia:response:allow", aCallID);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user