[Webkit-unassigned] [Bug 202142] Fix ServiceWorker downloads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 7 05:00:04 PDT 2020


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

--- Comment #13 from youenn fablet <youennf at gmail.com> ---
(In reply to Pedro Pedrosa from comment #12)
> Regardless of the above discussion, even if the client page remains open,
> downloading a service worker generated response (Content-Disposition:
> attachment) still doesn't work.
> 
> Downloading by clicking on a link simply doesn't trigger the service worker
> at all and downloads the URL from the network.
> 
> Downloading by creating a hidden iframe does trigger the service worker, and
> I can see that the service worker responds with a stream and that this
> stream is actually read all the way through, but the download manager simply
> doesn't care and downloads the URL from the network.
> 
> This is a show-stopper for my application so I'm forced to tell my users
> that downloading files this way is not supported by safari.

Right, this is a known limitation that should definitely be fixed.
If the service worker is generating the content (no opaque response), the workaround is to generate a blob from the Response and trigger the download as a blob.

-- 
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/20201007/23ac3f95/attachment.htm>


More information about the webkit-unassigned mailing list