[Webkit-unassigned] [Bug 235167] MediaStreamTrack endedEvent fired when RTCPeerConnection connectionState is already RTCPeerConnectionState::Closed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 13 10:53:14 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=235167

--- Comment #3 from Gabriel Nava Marino <gnavamarino at apple.com> ---
Per Youenn's recommendation in the related radar:

We should probably update MediaStreamTrack::trackEnded to queue a task to fire the event instead of firing the event right away.
This matches https://w3c.github.io/mediacapture-main/#track-ended.
This would allow to remove the activeDOMObjectsAreSuspended/activeDOMObjectsAreStopped checks in that method.
It would also be good to write a corresponding test. internals.simulateMediaStreamTrackCaptureSourceFailure maybe be able to help validate that the event is not fired synchronously.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220113/316bb4d8/attachment.htm>


More information about the webkit-unassigned mailing list