[Webkit-unassigned] [Bug 243671] New: Zero byte file downloaded when using the download attribute on an <a> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 8 08:55:09 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243671

            Bug ID: 243671
           Summary: Zero byte file downloaded when using the download
                    attribute on an <a> element
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit.org at shkspr.mobi

Created attachment 461485

  --> https://bugs.webkit.org/attachment.cgi?id=461485&action=review

Screenshot of the error

The code:

   <a href="" download="this.html">Download this page</a>`

Should prompt the user to download the current page and save it as a file called "this.html" 

On iOS, a download prompt appears, the file is created, but it is zero bytes. 

Demo: https://shkspr.mobi/blog/2021/08/to-download-this-page-click-here/

Evidence:

* https://twitter.com/pekingspring/status/1556601701603352576
* https://twitter.com/Bari10/status/1556538357353693187
* https://twitter.com/rgarner/status/1556530227676946432
* https://twitter.com/billt/status/1556528760056422401

On MacOS Safari, the file downloads correctly and has the correct file size.

(I've also raised this as FB11144571 on Feedback Assistant - because I wasn't sure if it was an iOS or WebKit bug.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220808/8474dd3c/attachment.htm>


More information about the webkit-unassigned mailing list