[Webkit-unassigned] [Bug 256698] ServiceWorker downloads fail when chunks are sent via postMessage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 13 09:40:32 PDT 2023


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

--- Comment #2 from mrskman at gmail.com ---
No, ServiceWorker isn't holding the downloaded data permanently. It holds one chunk at a time in Test #3.

The Test #3 works like this:
1) Web page downloads a chunk as a Blob.
2) Blob is passed to the ServiceWorker via postMessage.
3) ServiceWorker converts it to ArrayBuffer.
4) ServiceWorker waits until ReadableStream requests a new chunk via pull method.
5) ServiceWorker passes the ArrayBuffer to ReadableStream.
6) ServiceWorker sends message back to the page via MessageChannel.
7) Page receives the message and goes to step 1) until the download is completed.

-- 
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/20230513/098af59d/attachment.htm>


More information about the webkit-unassigned mailing list