firefox/mozilla-1728749.patch
2021-09-03 19:25:17 +02:00

17 lines
595 B
Diff

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") {