mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1050802 - UI changes to stop screen/window separately, r=Gijs.
This commit is contained in:
parent
774f50d295
commit
196862a9a1
@ -777,14 +777,6 @@ function updateBrowserSpecificIndicator(aBrowser) {
|
||||
perms.remove(uri.host, "microphone");
|
||||
|
||||
Services.obs.notifyObservers(null, "getUserMedia:revoke", windowId);
|
||||
|
||||
// Performing an action from a notification removes it, but if the page
|
||||
// uses screensharing and a device, we may have another notification to remove.
|
||||
let outerWindowID = Services.wm.getCurrentInnerWindowWithId(windowId)
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils)
|
||||
.outerWindowID;
|
||||
removeBrowserSpecificIndicator(null, null, outerWindowID);
|
||||
}
|
||||
}];
|
||||
let options = {
|
||||
@ -827,6 +819,13 @@ function updateBrowserSpecificIndicator(aBrowser) {
|
||||
return aTopic == "swapping";
|
||||
}
|
||||
};
|
||||
secondaryActions = [{
|
||||
label: stringBundle.getString("getUserMedia.stopSharing.label"),
|
||||
accessKey: stringBundle.getString("getUserMedia.stopSharing.accesskey"),
|
||||
callback: function () {
|
||||
Services.obs.notifyObservers(null, "getUserMedia:revoke", "screen:" + windowId);
|
||||
}
|
||||
}];
|
||||
// If we are sharing both a window and the screen, show 'Screen'.
|
||||
let stringId = "getUserMedia.sharing" + (screen.value ? "Screen" : "Window") + ".message";
|
||||
chromeWin.PopupNotifications.show(aBrowser, "webRTC-sharingScreen",
|
||||
|
Loading…
Reference in New Issue
Block a user