<?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>286060</bug_id>
          
          <creation_ts>2025-01-16 04:47:29 -0800</creation_ts>
          <short_desc>REGRESSION: Service Worker downloads being prematurely interrupted since iOS 18.2</short_desc>
          <delta_ts>2025-04-02 15:36:21 -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>Service Workers</component>
          <version>Safari 18</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 18</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>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mrskman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2087728</commentid>
    <comment_count>0</comment_count>
    <who name="">mrskman</who>
    <bug_when>2025-01-16 04:47:29 -0800</bug_when>
    <thetext>1) Open this page: https://stat-info.cz/safari-sw-download-tests.html
2) Click on any &quot;Start download&quot; button.
3) The download is automatically interrupted after a few chunks.

iOS 18.1 is the last working version for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2087801</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-01-16 11:16:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/143065672&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2088031</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2025-01-17 06:38:28 -0800</bug_when>
    <thetext>This is working for me using ToT WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2088047</commentid>
    <comment_count>3</comment_count>
    <who name="">mrskman</who>
    <bug_when>2025-01-17 07:57:11 -0800</bug_when>
    <thetext>I tried iOS 18.3 Beta 3 - not working. What can I do to help find the issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2088051</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2025-01-17 08:15:04 -0800</bug_when>
    <thetext>I&apos;ll try it on iOS 18.3 to try reproducing, if it reproduces then it means it is probably fixed in ToT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2098186</commentid>
    <comment_count>5</comment_count>
    <who name="">mrskman</who>
    <bug_when>2025-02-26 01:31:17 -0800</bug_when>
    <thetext>Issue is still reproducible on iOS 18.4 Beta.

It seems it is triggered by some race condition. If I have predownloaded multiple chunks, sending them to a ServiceWorker right after its activation interrupts the download.

I&apos;ve prepared a better test to reproduce this issue:
1) Go to https://stat-info.cz/safari-bug286060.html
2) Predownload 5 chunks using the &quot;Download chunk&quot; button.
3) Start the file download using &quot;Open ServiceWorker connection&quot; button.
4) Now the download is automatically interrupted by Safari after writing all predownloaded chunks.

Note 1: The download is successfully completed if you Open ServiceWorker connection first and then you download 10 chunks.
Note 2: Chrome on iOS works fine with predownloaded chunks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2101046</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-06 10:37:30 -0800</bug_when>
    <thetext>Committed 291712@main (29a25c5dec47): &lt;https://commits.webkit.org/291712@main&gt;

Reviewed commits have been landed. Closing PR #41998 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2108320</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-04-02 15:36:21 -0700</bug_when>
    <thetext>Committed 289651.390@safari-7621-branch (7b15ef0c6a89): &lt;https://commits.webkit.org/289651.390@safari-7621-branch&gt;

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

    </bug>

</bugzilla>