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.
err... bug in the repro script: pc.setLocalDescription(offer) not pc.setLocalDescription(offer.sdp)
<rdar://problem/53066862>
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.
can you dupe this into https://bugs.webkit.org/show_bug.cgi?id=209050 please?
*** This bug has been marked as a duplicate of bug 209050 ***