mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Issue #2332 - Have createOffer/Answer resolve with dictionaries
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 4
This commit is contained in:
parent
6b713575c9
commit
a1c22cb034
1 changed files with 4 additions and 9 deletions
|
|
@ -739,8 +739,7 @@ RTCPeerConnection.prototype = {
|
||||||
this._impl.createOffer(options);
|
this._impl.createOffer(options);
|
||||||
}));
|
}));
|
||||||
p = this._addIdentityAssertion(p, origin);
|
p = this._addIdentityAssertion(p, origin);
|
||||||
return p.then(
|
return p.then(sdp => Cu.cloneInto({ type: "offer", sdp: sdp }, this._win));
|
||||||
sdp => new this._win.RTCSessionDescription({ type: "offer", sdp: sdp }));
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -774,9 +773,7 @@ RTCPeerConnection.prototype = {
|
||||||
this._impl.createAnswer();
|
this._impl.createAnswer();
|
||||||
}));
|
}));
|
||||||
p = this._addIdentityAssertion(p, origin);
|
p = this._addIdentityAssertion(p, origin);
|
||||||
return p.then(sdp => {
|
return p.then(sdp => Cu.cloneInto({ type: "answer", sdp: sdp }, this._win));
|
||||||
return new this._win.RTCSessionDescription({ type: "answer", sdp: sdp });
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -1137,8 +1134,7 @@ RTCPeerConnection.prototype = {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new this._win.RTCSessionDescription({ type: this._localType,
|
return new this._win.RTCSessionDescription({ type: this._localType, sdp });
|
||||||
sdp: sdp });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
get remoteDescription() {
|
get remoteDescription() {
|
||||||
|
|
@ -1147,8 +1143,7 @@ RTCPeerConnection.prototype = {
|
||||||
if (sdp.length == 0) {
|
if (sdp.length == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return new this._win.RTCSessionDescription({ type: this._remoteType,
|
return new this._win.RTCSessionDescription({ type: this._remoteType, sdp });
|
||||||
sdp: sdp });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
get peerIdentity() { return this._peerIdentity; },
|
get peerIdentity() { return this._peerIdentity; },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue