<?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>275288</bug_id>
          
          <creation_ts>2024-06-07 19:31:03 -0700</creation_ts>
          <short_desc>Installed PWA not downloading pictures</short_desc>
          <delta_ts>2024-07-08 00:51:28 -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>Images</component>
          <version>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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="Laszlo">laszlo.alt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>karlcow</cc>
    
    <cc>leon.wolf</cc>
    
    <cc>luming_yin</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2040468</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo">laszlo.alt</who>
    <bug_when>2024-06-07 19:31:03 -0700</bug_when>
    <thetext>When visiting a PWA from Safari mobile and downloading a picture, the download prompt appears and asks the user to download, upon clicking it will save the file to downloads folder.

If you add/install the PWA to the Home screen, the download no longer works at all and shows no indication of a download. 

Android with Chrome behaviour appears to be similar to the non-installed PWA in iOS/Safari for these downloads.

Here is the example JS/TS used for the reproduction (blob is already a smaller/compressed picture)
const url = URL.createObjectURL(blob);
    const link = document.createElement(&apos;a&apos;);
    link.href = url;
    link.download = fileName;
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
    URL.revokeObjectURL(url);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040659</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-06-10 13:24:38 -0700</bug_when>
    <thetext>Thank you for the report! Would it be possible for you to share a URL to test with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040678</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo">laszlo.alt</who>
    <bug_when>2024-06-10 14:22:06 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #1)
&gt; Thank you for the report! Would it be possible for you to share a URL to
&gt; test with?

Here you are https://github.com/Operandi/webkitBug275288

If you use Safari on iOS, the download popup occurs and allows you to click OK to download the file automatically. If you install the PWA on the homescreen, the popup is a preview of the file instead and the user has to click to save the file within the link.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041195</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-06-13 12:35:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/129787577&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2042852</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-06-24 19:40:55 -0700</bug_when>
    <thetext>@Laszlo As currently shown, it (after discussions) seems the UI difference in betweem iOS and macOS is expected here. 

Thanks a lot for reporting. 
It doesn&apos;t depend on WebKit, so I will close it here.
The radar will be addressed by the right team inside Apple.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045015</commentid>
    <comment_count>5</comment_count>
    <who name="">leon.wolf</who>
    <bug_when>2024-07-07 22:34:38 -0700</bug_when>
    <thetext>(In reply to Karl Dubost from comment #4)
&gt; @Laszlo As currently shown, it (after discussions) seems the UI difference
&gt; in betweem iOS and macOS is expected here. 
&gt; 
&gt; Thanks a lot for reporting. 
&gt; It doesn&apos;t depend on WebKit, so I will close it here.
&gt; The radar will be addressed by the right team inside Apple.

Is there a way to keep track of the moved bug? We have an issue depending on that and would like to follow along the progress.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045033</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-07-08 00:51:28 -0700</bug_when>
    <thetext>As it belongs to the Safari UI (and not the opensource WebKit part), it&apos;s not possible. Sorry about that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>