Bug 934035 - Make PeerConnectionObserver's constructor not take an object argument. r=jib

This commit is contained in:
Andrew McCreight 2013-11-01 17:49:48 -07:00
parent 8f66a758c7
commit fd37030775
2 changed files with 5 additions and 3 deletions

View File

@ -259,7 +259,9 @@ RTCPeerConnection.prototype = {
this.makeGetterSetterEH("oniceconnectionstatechange");
this._pc = new this._win.PeerConnectionImpl();
this._observer = new this._win.PeerConnectionObserver(this);
this.__DOM_IMPL__._innerObject = this;
this._observer = new this._win.PeerConnectionObserver(this.__DOM_IMPL__);
this._winID = this._win.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID;
@ -845,7 +847,7 @@ PeerConnectionObserver.prototype = {
init: function(win) { this._win = win; },
__init: function(dompc) {
this._dompc = dompc;
this._dompc = dompc._innerObject;
},
dispatchEvent: function(event) {

View File

@ -8,7 +8,7 @@ interface nsISupports;
[ChromeOnly,
JSImplementation="@mozilla.org/dom/peerconnectionobserver;1",
Constructor (object domPC)]
Constructor (mozRTCPeerConnection domPC)]
interface PeerConnectionObserver
{
/* JSEP callbacks */