<?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>285595</bug_id>
          
          <creation_ts>2025-01-08 04:48:17 -0800</creation_ts>
          <short_desc>[GStreamer] `ended` event not always fired when reaching EOF. media/video-seek-after-end-play.html is a permanent failure</short_desc>
          <delta_ts>2025-01-08 05:17:51 -0800</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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=285569</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2085759</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-01-08 04:48:17 -0800</bug_when>
    <thetext>In bug 285569 a test was added that play an audio element to the end, seek to the start and play it again.

It intermittently timesout on GTK and is a permanent failure on WPE (for a different reason)

```
--- /var/home/phil/WebKit/WebKitBuild/GTK/Release/layout-test-results/media/video-seek-after-end-play-expected.txt
+++ /var/home/phil/WebKit/WebKitBuild/GTK/Release/layout-test-results/media/video-seek-after-end-play-actual.txt
@@ -1,3 +1,5 @@
+FAIL: Timed out waiting for notifyDone to be called
+
 Test that calling play while a seek is ongoing will resume.
 
 
@@ -10,6 +12,4 @@
 EVENT(playing)
 EVENT(seeking)
 EVENT(seeked)
-EVENT(ended)
-END OF TEST
 ```

WPE:
https://ews-build.s3-us-west-2.amazonaws.com/WPE-WK2-Tests-EWS/a9df3711-65228-stress-mode/media/video-seek-after-end-play-pretty-diff.html

```
--- /home/ews/worker/WPE-WK2-Tests-EWS/build/layout-test-results/media/video-seek-after-end-play-expected.txt
+++ /home/ews/worker/WPE-WK2-Tests-EWS/build/layout-test-results/media/video-seek-after-end-play-actual.txt
@@ -1,3 +1,5 @@
+FAIL: Timed out waiting for notifyDone to be called
+
 Test that calling play while a seek is ongoing will resume.
 
 
@@ -5,11 +7,4 @@
 EVENT(playing)
 EVENT(ended)
 EVENT(seeking)
-EVENT(seeked)
-EVENT(play)
-EVENT(playing)
-EVENT(seeking)
-EVENT(seeked)
-EVENT(ended)
-END OF TEST
 ```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>