mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 934035 - Make PeerConnectionObserver's constructor not take an object argument. r=jib
This commit is contained in:
parent
8f66a758c7
commit
fd37030775
@ -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