Currently, we are returning null, which is preventing to pass some W3C tests.
Created attachment 301366 [details] Patch
Created attachment 301368 [details] Patch
Comment on attachment 301368 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301368&action=review > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:66 > -static inline const char* sessionDescriptionType(RTCSessionDescription::SdpType sdpType) > +static inline const char* toSessionDescriptionType(RTCSessionDescription::SdpType sdpType) Let's not do this change. > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:88 > + auto type = description.type(); > + if (type == webrtc::SessionDescriptionInterface::kOffer) > + return RTCSessionDescription::SdpType::Offer; > + if (type == webrtc::SessionDescriptionInterface::kAnswer) > + return RTCSessionDescription::SdpType::Answer; > + ASSERT(type == webrtc::SessionDescriptionInterface::kPrAnswer); > + return RTCSessionDescription::SdpType::Pranswer; switch(description.type())
Created attachment 301525 [details] Patch for landing
(In reply to comment #3) > Comment on attachment 301368 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=301368&action=review > > > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:66 > > -static inline const char* sessionDescriptionType(RTCSessionDescription::SdpType sdpType) > > +static inline const char* toSessionDescriptionType(RTCSessionDescription::SdpType sdpType) > > Let's not do this change. OK > > > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:88 > > + auto type = description.type(); > > + if (type == webrtc::SessionDescriptionInterface::kOffer) > > + return RTCSessionDescription::SdpType::Offer; > > + if (type == webrtc::SessionDescriptionInterface::kAnswer) > > + return RTCSessionDescription::SdpType::Answer; > > + ASSERT(type == webrtc::SessionDescriptionInterface::kPrAnswer); > > + return RTCSessionDescription::SdpType::Pranswer; > > switch(description.type()) description.type() is a static const char[].
Comment on attachment 301525 [details] Patch for landing Clearing flags on attachment: 301525 Committed r212315: <http://trac.webkit.org/changeset/212315>
All reviewed patches have been landed. Closing bug.