From 932d84d992cdb04f4d61d2f5bb9fe980ef86087a Mon Sep 17 00:00:00 2001 From: "Matthew A. Miller" Date: Tue, 19 Aug 2014 13:05:39 -0600 Subject: [PATCH] Bug 1036653 - changes to webrtcUI to support applications r=florian --- browser/modules/webrtcUI.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/modules/webrtcUI.jsm b/browser/modules/webrtcUI.jsm index 54dfe713e52..e50e38fc1a6 100644 --- a/browser/modules/webrtcUI.jsm +++ b/browser/modules/webrtcUI.jsm @@ -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;