Bug 1036653 - changes to webrtcUI to support applications r=florian

This commit is contained in:
Matthew A. Miller 2014-08-19 13:05:39 -06:00
parent 9ada84d5a5
commit 932d84d992

View File

@ -349,7 +349,9 @@ function prompt(aContentWindow, aCallID, aAudio, aVideo, aDevices, aSecure) {
// Finally add all the window names. // Finally add all the window names.
let separatorNeeded = true; let separatorNeeded = true;
for (let i = 0; i < devices.length; ++i) { for (let i = 0; i < devices.length; ++i) {
if (devices[i].mediaSource == "window") { // treat window and application as the same for UI purposes
let deviceMediaSource = devices[i].mediaSource;
if (deviceMediaSource == "window" || deviceMediaSource == "application") {
if (separatorNeeded) { if (separatorNeeded) {
menupopup.appendChild(chromeDoc.createElement("menuseparator")); menupopup.appendChild(chromeDoc.createElement("menuseparator"));
separatorNeeded = false; separatorNeeded = false;