<?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>270772</bug_id>
          
          <creation_ts>2024-03-10 16:58:08 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 17.4): HTMLMediaElement#load() doesn&apos;t trigger some events for blob URLs</short_desc>
          <delta_ts>2024-04-12 15:33:12 -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>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>245428</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=245428</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=272502</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>CanvaBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gustavo H">guhenke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>brad</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>xidorn-webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2019971</commentid>
    <comment_count>0</comment_count>
    <who name="Gustavo H">guhenke</who>
    <bug_when>2024-03-10 16:58:08 -0700</bug_when>
    <thetext>On iOS 17.4, calling load() on a media element whose src property is set to a blob URL created by URL.createObjectURL() doesn&apos;t trigger some events.
The issue does not occur when src is set to an HTTP URL.

Steps to reproduce:
1. On iOS 17.4 Safari, access https://codepen.io/gustavohenke/pen/KKYzqYr
2. Using the file selector, select a video file on the device. Observe that the log only goes up to loadedmetadata.
3. Play the video. Notice that the log now contains play, waiting, loadeddata, etc.
4. Click &quot;Load Big Buck Bunny&quot;. Observe that the log contains loadeddata, canplay, etc just from the call to load()

Expected result:
The media element behaves the same with both HTTP and blob URLs

Actual result:
The media element doesn&apos;t fire loadeddata, canplay and canplaythrough events</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020241</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-03-11 14:51:50 -0700</bug_when>
    <thetext>Thank you for the report! Do you happen to know if this worked prior to iOS 17.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020244</commentid>
    <comment_count>2</comment_count>
    <who name="Gustavo H">guhenke</who>
    <bug_when>2024-03-11 14:58:12 -0700</bug_when>
    <thetext>Yes, seems to be working on iOS 17.3.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020263</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-11 15:26:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/124411454&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025297</commentid>
    <comment_count>4</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-04-01 19:39:40 -0700</bug_when>
    <thetext>It is very doubtful that loading via a blob url worked before 17.4. 

We only just added support to blob url playback in the last month or so to the WebKit tree.

*** This bug has been marked as a duplicate of bug 245428 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025310</commentid>
    <comment_count>5</comment_count>
    <who name="Gustavo H">guhenke</who>
    <bug_when>2024-04-01 21:43:02 -0700</bug_when>
    <thetext>It&apos;s how we&apos;ve been doing some operations/assertions on videos uploaded to canva.com for about 5 years.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>