<?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>312471</bug_id>
          
          <creation_ts>2026-04-16 07:03:14 -0700</creation_ts>
          <short_desc>RTCInboundRtpStreamStats.trackIdentifier doesn&apos;t match MediaStreamTrack.id</short_desc>
          <delta_ts>2026-04-17 08:39:50 -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>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Maria Ivanova">mariaivanova</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>tfaltejsek</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2201049</commentid>
    <comment_count>0</comment_count>
    <who name="Maria Ivanova">mariaivanova</who>
    <bug_when>2026-04-16 07:03:14 -0700</bug_when>
    <thetext>Per the W3C WebRTC Stats spec (https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-trackidentifier):
                                                                                                                                                                      
  ▎ trackIdentifier is the id attribute of the track object associated with this RTP stream.                                                                          
   
  In Safari stable (Version 26.4), RTCInboundRtpStreamStats.trackIdentifier returned from RTCPeerConnection.getStats() correctly matches MediaStreamTrack.id from             
  RTCRtpReceiver.track. In Safari Technology Preview (Release 241 (WebKit 21625.1.12)), these values diverge - trackIdentifier returns a different UUID than the one assigned to the corresponding
  MediaStreamTrack.                                                                                                                                                   
                                                            
  Steps to reproduce:

  1. Open https://jsfiddle.net/masha241/4kpx3zrh/1/                                                                                                                   
  2. Click Start to establish a loopback peer connection
  3. Click Check Stats to compare receiver.track.id with the trackIdentifier field from the inbound-rtp stats report                                                  
                                                                                                                                                                      
  Expected: Both values are the same string                                                                                   
                                                                                                                                                                      
  Actual (Safari Technology Preview): trackIdentifier is a different UUID than MediaStreamTrack.id                                               
                                                            
  Impact: Any application that correlates per-track WebRTC stats with MediaStreamTrack objects using this field (as the spec intends) will fail to match them</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201152</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-16 11:35:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/174938984&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201429</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2026-04-17 01:55:25 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/62961</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201527</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-17 08:39:47 -0700</bug_when>
    <thetext>Committed 311455@main (5f7fdedf0823): &lt;https://commits.webkit.org/311455@main&gt;

Reviewed commits have been landed. Closing PR #62961 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>