Bug 198887
| Summary: | localDescription.sdp does not contain mdns host candidates | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Philipp Hancke <fippo> |
| Component: | WebRTC | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Philipp Hancke
err... bug in the repro script:
pc.setLocalDescription(offer)
not
pc.setLocalDescription(offer.sdp)
Radar WebKit Bug Importer
<rdar://problem/53066862>
youenn fablet
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
can you dupe this into https://bugs.webkit.org/show_bug.cgi?id=209050 please?
youenn fablet
*** This bug has been marked as a duplicate of bug 209050 ***