<?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>314624</bug_id>
          
          <creation_ts>2026-05-12 00:58:46 -0700</creation_ts>
          <short_desc>time update event can be fired while we are seeking, before the seek completed</short_desc>
          <delta_ts>2026-05-13 09:06:07 -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="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2210048</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2026-05-12 00:58:46 -0700</bug_when>
    <thetext>Observed with the test imported/w3c/web-platform-tests/media-source/mediasource-duration.html 

The test seeks and expect the event to be in the order of &quot;seeking&quot; followed by &quot;timeupdate&quot;

However, there is the progress observer firing the timeupdate every 250ms ; it causes the test to intermittently fail prior the seeking event being dispatched if the timer fires while the seeking event is in flight.

The specs state:
&quot;If the time was reached through the usual monotonic increase of the current playback position during normal playback, and if the user agent has not fired a timeupdate event at the element in the past 15 to 250ms and is not still running event handlers for such an event, then the user agent must queue a media element task given the media element to fire an event named timeupdate at the element. (In the other cases, such as explicit seeks, relevant events get fired as part of the overall process of changing the current playback position.)&quot;

As such, it can be read that due to the explicit seek, the regular timeupdate shouldn&apos;t fire.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210049</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-12 00:58:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/176861767&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210110</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2026-05-12 05:48:39 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64758</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210534</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-13 09:06:05 -0700</bug_when>
    <thetext>Committed 313165@main (612b528ca587): &lt;https://commits.webkit.org/313165@main&gt;

Reviewed commits have been landed. Closing PR #64758 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>