<?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>250594</bug_id>
          
          <creation_ts>2023-01-13 14:12:49 -0800</creation_ts>
          <short_desc>Let MediaController.currentTime return the position previously set</short_desc>
          <delta_ts>2023-01-18 01:24:16 -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>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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1925445</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-13 14:12:49 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, came across a bug, which is no align with web-spec:

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/32276c29774c6af8a4ad9f6d0d6551bf8323883c

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/html/MediaController.cpp#169

&apos;&apos;&apos;

The currentTime attribute must, on getting, return the media element&apos;s default playback start position, unless that is zero, in which case it must return the element&apos;s official playback position. The returned value must be expressed in seconds. On setting, if the media element&apos;s readyState is HAVE_NOTHING, then it must set the media element&apos;s default playback start position to the new value; otherwise, it must set the official playback position to the new value and then seek to the new value. The new value must be interpreted as being in seconds.

&apos;&apos;&apos;

Web-Spec - https://html.spec.whatwg.org/multipage/media.html#offsets-into-the-media-resource

Just wanted to raise to get input, whether we should go ahead and merge this.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925975</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2023-01-17 06:14:49 -0800</bug_when>
    <thetext>I think we should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925976</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-17 06:16:25 -0800</bug_when>
    <thetext>(In reply to Eric Carlson from comment #1)
&gt; I think we should.

Cool! I will do PR later today and see what happens with EWS. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926222</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-18 01:23:11 -0800</bug_when>
    <thetext>Committed 259020@main (921f8243c150): &lt;https://commits.webkit.org/259020@main&gt;

Reviewed commits have been landed. Closing PR #8740 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926223</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-18 01:24:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/104370834&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>