mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1036653 - changes to webrtcUI to support applications r=florian
This commit is contained in:
parent
9ada84d5a5
commit
932d84d992
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user