Bug 198887 - localDescription.sdp does not contain mdns host candidates
Summary: localDescription.sdp does not contain mdns host candidates
Status: RESOLVED DUPLICATE of bug 209050
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-06-15 03:06 PDT by Philipp Hancke
Modified: 2021-10-29 01:03 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hancke 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.
Comment 1 Philipp Hancke 2019-06-15 03:08:55 PDT
err... bug in the repro script:
  pc.setLocalDescription(offer)
not
  pc.setLocalDescription(offer.sdp)
Comment 2 Radar WebKit Bug Importer 2019-07-13 23:39:44 PDT
<rdar://problem/53066862>
Comment 3 youenn fablet 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.
Comment 4 :fippo 2021-10-29 00:07:32 PDT
can you dupe this into https://bugs.webkit.org/show_bug.cgi?id=209050 please?
Comment 5 youenn fablet 2021-10-29 01:03:11 PDT

*** This bug has been marked as a duplicate of bug 209050 ***