Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a22e10319571a1623b16cf7ba4185390a7dd53ff
      
https://github.com/WebKit/WebKit/commit/a22e10319571a1623b16cf7ba4185390a7dd53ff
  Author: Youenn Fablet <[email protected]>
  Date:   2026-03-12 (Thu, 12 Mar 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-ontrack.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-ontrack.https.html
    M Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp

  Log Message:
  -----------
  RTCPeerConnection should not fire track events for already stopped 
transceivers
rdar://171883768
https://bugs.webkit.org/show_bug.cgi?id=309339

Reviewed by Eric Carlson.

Align with other browsers on not surfacing a track belonging to a receiver that 
is associated with a new m-section that is rejected.
According the spec, we should use the direction and streams ids parameters to 
do so.
Oour stream ids should be empty in that case, but we do not have that handling 
in LibWebRTCMediaEndpoint.
Instead, we just check whether the transceiver is stopped, ie the m-section is 
rejected.

Covered by rebased test.

Canonical link: https://commits.webkit.org/309125@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to