mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 934035 - Make PeerConnectionObserver's constructor not take an object argument. r=jib
This commit is contained in:
parent
c3fbce57ed
commit
d9397ab65a
@ -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) {
|
||||
|
@ -8,7 +8,7 @@ interface nsISupports;
|
||||
|
||||
[ChromeOnly,
|
||||
JSImplementation="@mozilla.org/dom/peerconnectionobserver;1",
|
||||
Constructor (object domPC)]
|
||||
Constructor (mozRTCPeerConnection domPC)]
|
||||
interface PeerConnectionObserver
|
||||
{
|
||||
/* JSEP callbacks */
|
||||
|
Loading…
Reference in New Issue
Block a user