summaryrefslogtreecommitdiff
path: root/mozilla-1728749.patch
blob: 08f621754a455ed32a6a727e34b1a48f784eed75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/browser/actors/WebRTCParent.jsm b/browser/actors/WebRTCParent.jsm
--- a/browser/actors/WebRTCParent.jsm
+++ b/browser/actors/WebRTCParent.jsm
@@ -870,6 +870,11 @@
               );
               item.deviceId = device.id;
               item.mediaSource = type;
+
+              // In this case the OS sharing dialog will be the only option and
+              // can be safely pre-selected.
+              menupopup.parentNode.selectedItem = item;
+              menupopup.parentNode.disabled = true;
               break;
             }
             if (type == "application") {

bgstack15