Bug 198887

Summary: localDescription.sdp does not contain mdns host candidates
Product: WebKit Reporter: Philipp Hancke <fippo>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: lennart.grahl, philipp.hancke, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Philipp Hancke
Reported 2019-06-15 03:06:56 PDT
from https://stackoverflow.com/questions/56606608/is-safaris-rtcdatachannel-implementation-completely-broken Simplified steps to reproduce: On a site without getUserMedia permission, paste this: ``` const pc = new RTCPeerConnection(); pc.onicecandidate = (e) => console.log(e.candidate) pc.onicegatheringstatechange = () => { if (pc.iceGatheringState === 'complete') { console.log(pc.localDescription.sdp); } }; pc.createDataChannel("aint-broken"); pc.createOffer().then(offer => pc.setLocalDescription(offer.sdp)); ``` Note that the onicecandidate events shows mdns host candidates but pc.localDescription.sdp does not contain any candidate.
Attachments
Philipp Hancke
Comment 1 2019-06-15 03:08:55 PDT
err... bug in the repro script: pc.setLocalDescription(offer) not pc.setLocalDescription(offer.sdp)
Radar WebKit Bug Importer
Comment 2 2019-07-13 23:39:44 PDT
youenn fablet
Comment 3 2019-07-13 23:43:07 PDT
Thanks for the report. I am not sure this should be a real issue in practice. But we should get there at some point though.
:fippo
Comment 4 2021-10-29 00:07:32 PDT
can you dupe this into https://bugs.webkit.org/show_bug.cgi?id=209050 please?
youenn fablet
Comment 5 2021-10-29 01:03:11 PDT
*** This bug has been marked as a duplicate of bug 209050 ***
Note You need to log in before you can comment on or make changes to this bug.