Bug 1352522, part 3 - Remove the unused listener for webrtc:StartBrowserSharing. r=florian
MozReview-Commit-ID: 780LNGx1p15
--- a/browser/base/content/content.js
+++ b/browser/base/content/content.js
@@ -707,23 +707,16 @@ addEventListener("DOMWindowFocus", funct
// it is actually needed.
var ContentWebRTCShim = message => ContentWebRTC.receiveMessage(message);
addMessageListener("rtcpeer:Allow", ContentWebRTCShim);
addMessageListener("rtcpeer:Deny", ContentWebRTCShim);
addMessageListener("webrtc:Allow", ContentWebRTCShim);
addMessageListener("webrtc:Deny", ContentWebRTCShim);
addMessageListener("webrtc:StopSharing", ContentWebRTCShim);
-addMessageListener("webrtc:StartBrowserSharing", () => {
- let windowID = content.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIDOMWindowUtils).outerWindowID;
- sendAsyncMessage("webrtc:response:StartBrowserSharing", {
- windowID
- });
-});
addEventListener("pageshow", function(event) {
if (event.target == content.document) {
sendAsyncMessage("PageVisibility:Show", {
persisted: event.persisted,
});
}
});