commit 38f96dae38b0312eec6a5896abb997e4d50ffcc4
parent c90e1b8e1cb395471fd43634622caddd4afa3a88
Author: Philipp Hancke <philipp.hancke@googlemail.com>
Date: Tue, 21 Oct 2025 10:30:12 +0000
Bug 1994729 [wpt PR 55476] - webrtc: dont fire track events for stopped transceivers, a=testonly
Automatic update from web-platform-tests
webrtc: dont fire track events for stopped transceivers
https://w3c.github.io/webrtc-pc/#processing-remote-mediastreamtracks
BUG=chromium:952200
Change-Id: Ibf2ba7aeb00cd91c78598476db7f1fff7f78de14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3268594
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1530816}
--
wpt-commits: fd1cdd16edd11139ef108d1194a7c908a1d4478f
wpt-pr: 55476
Diffstat:
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/webrtc/RTCPeerConnection-ontrack.https.html b/testing/web-platform/tests/webrtc/RTCPeerConnection-ontrack.https.html
@@ -280,4 +280,30 @@ a=ssrc:1001 cname:some
assert_equals(tracks[3].kind, 'audio', 'fourth ontrack fires with an audio track');
}, `addTransceiver order of kinds is retained in ontrack at the receiver`);
+ promise_test(async t => {
+ const pc = new RTCPeerConnection();
+ t.add_cleanup(() => pc.close());
+
+ const sdp = `v=0
+o=- 166855176514521964 2 IN IP4 127.0.0.1
+s=-
+t=0 0
+a=msid-semantic:WMS *
+m=audio 0 UDP/TLS/RTP/SAVPF 111
+c=IN IP4 0.0.0.0
+a=rtcp:9 IN IP4 0.0.0.0
+a=ice-ufrag:someufrag
+a=ice-pwd:somelongpwdwithenoughrandomness
+a=fingerprint:sha-256 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
+a=setup:actpass
+a=mid:0
+a=sendonly
+a=rtcp-mux
+a=rtpmap:111 opus/48000/2
+a=ssrc:1001 cname:some
+`;
+ pc.ontrack = t.unreached_func('ontrack event should not fire for track in a rejected media section');
+
+ await pc.setRemoteDescription({type: 'offer', sdp});
+ }, `ontrack should not fire for rejected media sections`);
</script>
diff --git a/testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html b/testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html
@@ -1017,8 +1017,6 @@
const answer = await pc2.createAnswer();
trackEvents = await setRemoteDescriptionReturnTrackEvents(pc1, answer);
- // Spec language doesn't say anything about checking whether the transceiver
- // is stopped here.
hasProps(trackEvents,
[
{