<?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>311317</bug_id>
          
          <creation_ts>2026-04-01 22:01:46 -0700</creation_ts>
          <short_desc>REGRESSION(310087@main): [GStreamer] fast/mediastream/MediaStream-video-element-track-stop.html is a flaky timeout / failure</short_desc>
          <delta_ts>2026-04-06 05:00:16 -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>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</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="Claudio Saavedra">csaavedra</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>aboya</cc>
    
    <cc>calvaris</cc>
    
    <cc>eocanha</cc>
    
    <cc>lmoura</cc>
    
    <cc>philn</cc>
    
    <cc>vwatermeier</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2196149</commentid>
    <comment_count>0</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2026-04-01 22:01:46 -0700</bug_when>
    <thetext>This test was failing consistently but it started flakily timing out around 310089@main. Not necessarily because of that change, but around that time:

https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fmediastream%2FMediaStream-video-element-track-stop.html&amp;platform=GTK&amp;platform=WPE

stderr when timing out:

0:00:10.345510431 1435672 0x555bed682610 ERROR                  pulse pulsedeviceprovider.c:571:gst_pulse_device_provider_start:&lt;pulsedeviceprovider0&gt; Failed to connect: Connection refused
0:00:10.345931852 1435672 0x555bed682610 ERROR                  pulse pulsedeviceprovider.c:466:gst_pulse_device_provider_probe:&lt;pulsedeviceprovider0&gt; Failed to connect: Invalid argument
0:00:10.385767495 1435672 0x555bed682610 ERROR             video-info video-info.c:595:gst_video_info_from_caps: no format given

diff when timing out:

--- /sdk/webkit/layout-test-results/fast/mediastream/MediaStream-video-element-track-stop-expected.txt
+++ /sdk/webkit/layout-test-results/fast/mediastream/MediaStream-video-element-track-stop-actual.txt
@@ -1,3 +1,5 @@
+FAIL: Timed out waiting for notifyDone to be called
+
 Tests MediaStreamTrack callbacks.
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
@@ -47,21 +49,5 @@
 mediaStream.getVideoTracks()[0].stop()
 mediaStream.getAudioTracks()[0].stop()
 
-Event &apos;ended&apos;
+Event &apos;canplaythrough&apos;
 
-**** re-check states now that the video stream has ended ****
-PASS video.ended is true
-PASS video.videoWidth is 0
-PASS video.videoHeight is 0
-
-PASS video.videoTracks.length is 1
-PASS video.videoTracks.selectedIndex is -1
-PASS video.videoTracks[0].selected is false
-
-PASS mediaStream.getVideoTracks()[0].enabled is true
-PASS mediaStream.getVideoTracks()[0].readyState is &quot;ended&quot;
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-


stderr when it fails:

0:00:06.192102790 58223 0x559a628a1820 ERROR                  pulse pulsedeviceprovider.c:571:gst_pulse_device_provider_start:&lt;pulsedeviceprovider0&gt; Failed to connect: Connection refused
0:00:06.192531575 58223 0x559a628a1820 ERROR                  pulse pulsedeviceprovider.c:466:gst_pulse_device_provider_probe:&lt;pulsedeviceprovider0&gt; Failed to connect: Invalid argument
0:00:06.238394812 58223 0x559a628a1820 ERROR             video-info video-info.c:595:gst_video_info_from_caps: no format given

diff when it fails:

--- /sdk/webkit/layout-test-results/fast/mediastream/MediaStream-video-element-track-stop-expected.txt
+++ /sdk/webkit/layout-test-results/fast/mediastream/MediaStream-video-element-track-stop-actual.txt
@@ -47,6 +47,7 @@
 mediaStream.getVideoTracks()[0].stop()
 mediaStream.getAudioTracks()[0].stop()
 
+Event &apos;canplaythrough&apos;
 Event &apos;ended&apos;
 
 **** re-check states now that the video stream has ended ****
@@ -54,7 +55,7 @@
 PASS video.videoWidth is 0
 PASS video.videoHeight is 0
 
-PASS video.videoTracks.length is 1
+FAIL video.videoTracks.length should be 1. Was 2.
 PASS video.videoTracks.selectedIndex is -1
 PASS video.videoTracks[0].selected is false</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196237</commentid>
    <comment_count>1</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2026-04-02 04:10:43 -0700</bug_when>
    <thetext>Similar situation with imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-removetrack.https.html

See https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/310431@main%20(24341)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196238</commentid>
    <comment_count>2</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2026-04-02 04:12:40 -0700</bug_when>
    <thetext>https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fmediacapture-streams%2FMediaStream-removetrack.https.html&amp;test=fast%2Fmediastream%2FMediaStream-video-element-track-stop.html&amp;platform=GTK&amp;platform=WPE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196596</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-04-03 07:43:10 -0700</bug_when>
    <thetext>*** Bug 307032 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196600</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-04-03 07:48:13 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61979</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197221</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-06 04:59:44 -0700</bug_when>
    <thetext>Committed 310636@main (bdd2974c9e82): &lt;https://commits.webkit.org/310636@main&gt;

Reviewed commits have been landed. Closing PR #61979 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197222</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-06 05:00:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/174153504&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>