<?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>301701</bug_id>
          
          <creation_ts>2025-10-30 09:44:14 -0700</creation_ts>
          <short_desc>range request to blob url created from URL.createObjectURL does not work in Safari but works in Chrome</short_desc>
          <delta_ts>2025-10-31 10:12:25 -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>New Bugs</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Hodel">andrewhodel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2155278</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-30 09:44:14 -0700</bug_when>
    <thetext>https://jsfiddle.net/7h016nke/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155280</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-30 10:02:02 -0700</bug_when>
    <thetext>It can be accomplished with ReadableStream but fetch should also work correctly.

https://jsfiddle.net/dw2vkj7h/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155314</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-10-30 13:31:59 -0700</bug_when>
    <thetext>Thank you for the report! I cannot reproduce this using STP 230, &lt;https://jsfiddle.net/7h016nke/&gt; logs `&quot;bytes=7-11&quot;, [object ArrayBuffer]` in console. And when I decode the content, I see the correct bytes from the file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155351</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-30 15:00:05 -0700</bug_when>
    <thetext>@comment #2

It&apos;s a good thing this conversation is being documented.

You need to load much data and eventually Safari starts to log an error in the console that is a specific WebKit error from URL.createObjectURL when you try to load files after that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155356</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-30 15:02:56 -0700</bug_when>
    <thetext>I wrote more about it here - https://medium.com/@andrewhodel/read-files-to-arraybuffer-without-delay-or-memory-usage-in-every-browser-aede7b3d9c2a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155365</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-10-30 15:17:52 -0700</bug_when>
    <thetext>Can you please provide steps to reproduce that actually demonstrate the issue? How much data is much data? Is it large files or selecting multiple files sequentially?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155494</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-31 06:17:16 -0700</bug_when>
    <thetext>I don&apos;t know why you don&apos;t understand that it does the same thing to you as it does to me.

I&apos;ve already removed using fetch and replaced it with using streams because of this issue.

I think the only reasonable attempt at answering that is that someone who is familiar with that process in the WebKit codebase evaluate the routine with focus on how this could happen to answer that question.

That&apos;s why it is a bug report, do you think that I am lying to you for fun and entertainment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155523</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-10-31 08:20:29 -0700</bug_when>
    <thetext>Please provide steps to reproduce, then we can take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155543</commentid>
    <comment_count>8</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-31 09:53:58 -0700</bug_when>
    <thetext>@comment #7

I did, I didn&apos;t provide time to actualize those steps because it is a very long time.

I also told you that it would be less time and more importantly effort to:

&quot;I think the only reasonable attempt at answering that is that someone who is familiar with that process in the WebKit codebase evaluate the routine with focus on how this could happen to answer that question.&quot;



Andrew</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155548</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-10-31 10:09:30 -0700</bug_when>
    <thetext>I hear you that you are observing a problem. The test does not reproduce it, so it could be a WebKit bug or a bug in your production code, either way, there is nothing to investigate based on the provided information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155549</commentid>
    <comment_count>10</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-31 10:12:03 -0700</bug_when>
    <thetext>The test does reproduce it, you just didn&apos;t test enough as I already explained.

It doesn&apos;t matter, it&apos;s been documented and is searchable and through time more people will reply to the bug if they experience it.  That increases it&apos;s credibility.

It should not have been closed because it does not infringe on any constitutional rights, that is your mistake and it is also documented.


Andrew</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155550</commentid>
    <comment_count>11</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2025-10-31 10:12:25 -0700</bug_when>
    <thetext>The test does reproduce it, you just didn&apos;t test enough as I already explained.

It doesn&apos;t matter, it&apos;s been documented and is searchable and through time more people will reply to the bug if they experience it.  That increases it&apos;s credibility.

It should not have been closed because it does not infringe on any constitutional rights, that is your mistake and it is also documented.


Andrew</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>