Bug 1645632 - Include webrtc window streams when handling webrtcLegacyIndicator click. r=johannh
Bug 1636207 updated webrtcUI.getActiveStreams to support getting window streams. This updates the call sites in the legacy webrtc indicator, so we get all streams. In the affected call sites the streams are used to find and focus the parent window and show the permissions doorhanger. Differential Revision: https://phabricator.services.mozilla.com/D80030
This commit is contained in:
@@ -108,7 +108,7 @@ function onPopupMenuShowing(event) {
|
||||
if (popup.getAttribute("type") == "Devices") {
|
||||
activeStreams = webrtcUI.getActiveStreams(true, true, false);
|
||||
} else {
|
||||
activeStreams = webrtcUI.getActiveStreams(false, false, true);
|
||||
activeStreams = webrtcUI.getActiveStreams(false, false, true, true);
|
||||
}
|
||||
if (activeStreams.length) {
|
||||
let index = activeStreams.length - 1;
|
||||
@@ -139,7 +139,7 @@ function onPopupMenuCommand(event) {
|
||||
|
||||
function onFirefoxButtonClick(event) {
|
||||
event.target.blur();
|
||||
let activeStreams = webrtcUI.getActiveStreams(true, true, true);
|
||||
let activeStreams = webrtcUI.getActiveStreams(true, true, true, true);
|
||||
activeStreams[0].browser.ownerGlobal.focus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user