From 6b713575c9d71ef50ef5a7208b8ff2ba4d760dda Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Mon, 9 Oct 2023 17:06:12 -0400 Subject: [PATCH] Issue #2332 - Have set(Local|Remote)Description take dictionaries Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 3 --- dom/webidl/RTCPeerConnection.webidl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dom/webidl/RTCPeerConnection.webidl b/dom/webidl/RTCPeerConnection.webidl index 272d9c6c4e..7e9016e0aa 100644 --- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -7,7 +7,7 @@ * http://w3c.github.io/webrtc-pc/#interface-definition */ -callback RTCSessionDescriptionCallback = void (RTCSessionDescription sdp); +callback RTCSessionDescriptionCallback = void (RTCSessionDescriptionInit description); callback RTCPeerConnectionErrorCallback = void (DOMError error); callback RTCStatsCallback = void (RTCStatsReport report); @@ -84,10 +84,10 @@ interface RTCPeerConnection : EventTarget { optional DOMString username); [Pref="media.peerconnection.identity.enabled"] Promise getIdentityAssertion(); - Promise createOffer (optional RTCOfferOptions options); - Promise createAnswer (optional RTCAnswerOptions options); - Promise setLocalDescription (RTCSessionDescription description); - Promise setRemoteDescription (RTCSessionDescription description); + Promise createOffer (optional RTCOfferOptions options); + Promise createAnswer (optional RTCAnswerOptions options); + Promise setLocalDescription (RTCSessionDescriptionInit description); + Promise setRemoteDescription (RTCSessionDescriptionInit description); readonly attribute RTCSessionDescription? localDescription; readonly attribute RTCSessionDescription? remoteDescription; readonly attribute RTCSignalingState signalingState; @@ -155,10 +155,10 @@ partial interface RTCPeerConnection { optional RTCOfferOptions options); Promise createAnswer (RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback); - Promise setLocalDescription (RTCSessionDescription description, + Promise setLocalDescription (RTCSessionDescriptionInit description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback); - Promise setRemoteDescription (RTCSessionDescription description, + Promise setRemoteDescription (RTCSessionDescriptionInit description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback); Promise addIceCandidate (RTCIceCandidate candidate,