[Webkit-unassigned] [Bug 258412] New: Streaming Responses generated from a ServiceWorker are mis-reported as 0kb by the download manager on iOS, works correctly on macOS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 22 11:54:21 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258412
Bug ID: 258412
Summary: Streaming Responses generated from a ServiceWorker are
mis-reported as 0kb by the download manager on iOS,
works correctly on macOS
Product: WebKit
Version: Safari 16
Hardware: iPhone / iPad
OS: iOS 16
Status: NEW
Severity: Normal
Priority: P2
Component: Service Workers
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nathan at shareup.app
Created attachment 466798
--> https://bugs.webkit.org/attachment.cgi?id=466798&action=review
Screenshot of the iOS download manager reporting the download size as 0kb instead of reading and reporting the Content-length header
For Response's who's bodies are ReadableStreams onn iOS, the file size is reported as 0kb and the progress is shown as indeterminate until the download completes. The downloaded file is usable, so this is a cosmetic bug in the download manager. We have seen bug reports for our app where people mistook this cosmetic bug as a download failure.
On macOS, the reported size is correct and the % progress is reported correctly during the download.
I've created a demonstration repo which streams a .txt file out as a download which reproduces the problem, and includes screenshots of the download managers for iOS and macOS.
https://github.com/shareup/streaming-service-worker-download-content-length-bug
Also, thank you all for introducing streaming ServiceWorker downloads in Safari 15.4 ❤️
--
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/20230622/fbbc0a38/attachment-0001.htm>
More information about the webkit-unassigned
mailing list