Changeset 218335 in webkit
- Timestamp:
- Jun 15, 2017 9:24:20 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r218334 r218335 1 2017-06-15 Youenn Fablet <youenn@apple.com> 2 3 RTCPeerConnection returns RTCSessionDescription where RTCSessionDescriptionInit would be appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=173118 5 <rdar://problem/32746761> 6 7 Reviewed by Eric Carlson. 8 9 * fast/mediastream/RTCPeerConnection-setLocalDescription-offer-expected.txt: 10 * fast/mediastream/RTCPeerConnection-setRemoteDescription-offer-expected.txt: 11 * webrtc/createOfferAnswer-expected.txt: Added. 12 * webrtc/createOfferAnswer.html: Added. 13 1 14 2017-06-15 Matt Lewis <jlewis3@apple.com> 2 15 -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-setLocalDescription-offer-expected.txt
r214075 r218335 20 20 PASS firstOffer set as local description 21 21 FAIL pc.signalingState should be have-local-offer. Was stable. 22 FAIL pc.localDescription should be [object RTCSessionDescription]. Was null.23 FAIL pc.pendingLocalDescription should be [object RTCSessionDescription]. Was null.22 FAIL pc.localDescription should be [object Object]. Was null. 23 FAIL pc.pendingLocalDescription should be [object Object]. Was null. 24 24 PASS pc.currentLocalDescription is null 25 25 FAIL Error caught in promise chain: TypeError: null is not an object (evaluating 'pc.localDescription.type') -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-setRemoteDescription-offer-expected.txt
r214075 r218335 13 13 PASS remoteOffer1 set as remote description 14 14 FAIL pc.signalingState should be have-remote-offer. Was stable. 15 FAIL pc.remoteDescription should be [object RTCSessionDescription]. Was null.16 FAIL pc.pendingRemoteDescription should be [object RTCSessionDescription]. Was null.15 FAIL pc.remoteDescription should be [object Object]. Was null. 16 FAIL pc.pendingRemoteDescription should be [object Object]. Was null. 17 17 PASS pc.currentRemoteDescription is null 18 18 … … 30 30 PASS remoteOffer2 set as remote description 31 31 FAIL pc.signalingState should be have-remote-offer. Was stable. 32 FAIL pc.remoteDescription should be [object RTCSessionDescription]. Was null.33 FAIL pc.pendingRemoteDescription should be [object RTCSessionDescription]. Was null.32 FAIL pc.remoteDescription should be [object Object]. Was null. 33 FAIL pc.pendingRemoteDescription should be [object Object]. Was null. 34 34 PASS pc.currentRemoteDescription is null 35 35 -
trunk/LayoutTests/imported/w3c/ChangeLog
r218247 r218335 1 2017-06-15 Youenn Fablet <youenn@apple.com> 2 3 RTCPeerConnection returns RTCSessionDescription where RTCSessionDescriptionInit would be appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=173118 5 <rdar://problem/32746761> 6 7 Reviewed by Eric Carlson. 8 9 * web-platform-tests/webrtc/RTCPeerConnection-createOffer-expected.txt: 10 1 11 2017-06-14 Nael Ouedraogo <nael.ouedraogo@crf.canon.fr> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-createOffer-expected.txt
r218181 r218335 1 1 2 FAIL createOffer() with no argument from newly created RTCPeerConnection should succeed assert_false: Expect offer to not be instance of RTCSessionDescription expected false got true 2 PASS createOffer() with no argument from newly created RTCPeerConnection should succeed 3 3 FAIL createOffer() and then setLocalDescription() should succeed assert_not_equals: Expect session description to be defined, but got undefined got disallowed value undefined 4 4 PASS createOffer() after connection is closed should reject with InvalidStateError -
trunk/Source/WebCore/ChangeLog
r218318 r218335 1 2017-06-15 Youenn Fablet <youenn@apple.com> 2 3 RTCPeerConnection returns RTCSessionDescription where RTCSessionDescriptionInit would be appropriate 4 https://bugs.webkit.org/show_bug.cgi?id=173118 5 <rdar://problem/32746761> 6 7 Reviewed by Eric Carlson. 8 9 Test: webrtc/createOfferAnswer.html 10 11 Making the promise return a RTCSessionDescription::Init instead of a RTCSessionDescription. 12 This aligns with the spec and is more optimal. 13 14 * Modules/mediastream/PeerConnectionBackend.cpp: 15 (WebCore::PeerConnectionBackend::createOfferSucceeded): 16 (WebCore::PeerConnectionBackend::createAnswerSucceeded): 17 * Modules/mediastream/PeerConnectionBackend.h: 18 * Modules/mediastream/RTCSessionDescription.idl: 19 1 20 2017-06-15 Emilio Cobos Álvarez <ecobos@igalia.com> 2 21 -
trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp
r218168 r218335 63 63 64 64 ASSERT(m_offerAnswerPromise); 65 m_offerAnswerPromise->resolve(RTCSessionDescription:: create(RTCSdpType::Offer, filterSDP(WTFMove(sdp))));65 m_offerAnswerPromise->resolve(RTCSessionDescription::Init { RTCSdpType::Offer, filterSDP(WTFMove(sdp)) }); 66 66 m_offerAnswerPromise = std::nullopt; 67 67 } … … 98 98 99 99 ASSERT(m_offerAnswerPromise); 100 m_offerAnswerPromise->resolve(RTCSessionDescription:: create(RTCSdpType::Answer, WTFMove(sdp)));100 m_offerAnswerPromise->resolve(RTCSessionDescription::Init { RTCSdpType::Answer, WTFMove(sdp) }); 101 101 m_offerAnswerPromise = std::nullopt; 102 102 } -
trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h
r218168 r218335 36 36 #include "JSDOMPromiseDeferred.h" 37 37 #include "RTCRtpParameters.h" 38 #include "RTCSessionDescription.h" 38 39 #include "RTCSignalingState.h" 39 40 … … 57 58 58 59 namespace PeerConnection { 59 using SessionDescriptionPromise = DOMPromiseDeferred<IDL Interface<RTCSessionDescription>>;60 using SessionDescriptionPromise = DOMPromiseDeferred<IDLDictionary<RTCSessionDescription::Init>>; 60 61 using StatsPromise = DOMPromiseDeferred<IDLInterface<RTCStatsReport>>; 61 62 } -
trunk/Source/WebCore/Modules/mediastream/RTCSessionDescription.idl
r214212 r218335 49 49 PublicIdentifier, 50 50 ] interface RTCSessionDescription { 51 [SetterMayThrowException]readonly attribute RTCSdpType type;51 readonly attribute RTCSdpType type; 52 52 readonly attribute DOMString sdp; 53 53 … … 55 55 }; 56 56 57 dictionary RTCSessionDescriptionInit { 57 [ 58 Conditional=WEB_RTC, 59 JSGenerateToJSObject 60 ] dictionary RTCSessionDescriptionInit { 58 61 required RTCSdpType type; 59 62 DOMString sdp = "";
Note: See TracChangeset
for help on using the changeset viewer.