Bug 1036653 - changes to webrtcUI to support applications

This commit is contained in:
Matthew A. Miller 2014-08-19 13:05:39 -06:00
parent d8148ee08e
commit 81f56e0ef8

View File

@ -349,7 +349,9 @@ function prompt(aContentWindow, aCallID, aAudio, aVideo, aDevices, aSecure) {
// Finally add all the window names.
let separatorNeeded = true;
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) {
menupopup.appendChild(chromeDoc.createElement("menuseparator"));
separatorNeeded = false;