Bug 1352522, part 3 - Remove the unused listener for webrtc:StartBrowserSharing. r=florian draft
authorAndrew McCreight <continuation@gmail.com>
Thu, 06 Apr 2017 14:39:02 -0700
changeset 558680 440d8b958ef866376a52fbc6ed2cd859c5cb45a3
parent 558679 364b1e25000ebc7590f776966d56ea02ea9301a2
child 558686 c16a00fd97b1b1f5fc50efd166ad4b2a1aef5204
push id52931
push userbmo:continuation@gmail.com
push dateFri, 07 Apr 2017 22:06:59 +0000
reviewersflorian
bugs1352522
milestone55.0a1
Bug 1352522, part 3 - Remove the unused listener for webrtc:StartBrowserSharing. r=florian MozReview-Commit-ID: 780LNGx1p15
browser/base/content/content.js
--- 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,
     });
   }
 });