<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>198887</bug_id>
          
          <creation_ts>2019-06-15 03:06:56 -0700</creation_ts>
          <short_desc>localDescription.sdp does not contain mdns host candidates</short_desc>
          <delta_ts>2021-10-29 01:03:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>209050</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philipp Hancke">fippo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mail-154060</cc>
    
    <cc>philipp.hancke</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1545000</commentid>
    <comment_count>0</comment_count>
    <who name="Philipp Hancke">fippo</who>
    <bug_when>2019-06-15 03:06:56 -0700</bug_when>
    <thetext>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) =&gt; console.log(e.candidate)
pc.onicegatheringstatechange = () =&gt; {
  if (pc.iceGatheringState === &apos;complete&apos;) {
    console.log(pc.localDescription.sdp);
  }
};
pc.createDataChannel(&quot;aint-broken&quot;);
pc.createOffer().then(offer =&gt; pc.setLocalDescription(offer.sdp));
```
Note that the onicecandidate events shows mdns host candidates but pc.localDescription.sdp does not contain any candidate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545001</commentid>
    <comment_count>1</comment_count>
    <who name="Philipp Hancke">fippo</who>
    <bug_when>2019-06-15 03:08:55 -0700</bug_when>
    <thetext>err... bug in the repro script:
  pc.setLocalDescription(offer)
not
  pc.setLocalDescription(offer.sdp)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1552729</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-07-13 23:39:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/53066862&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1552730</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2019-07-13 23:43:07 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809978</commentid>
    <comment_count>4</comment_count>
    <who name=":fippo">philipp.hancke</who>
    <bug_when>2021-10-29 00:07:32 -0700</bug_when>
    <thetext>can you dupe this into https://bugs.webkit.org/show_bug.cgi?id=209050 please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809998</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-10-29 01:03:11 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 209050 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>