[Webkit-unassigned] [Bug 197441] Blob downloads stopped working

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 11 02:55:01 PDT 2019


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

Gints <gints.osis1 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gints.osis1 at gmail.com

--- Comment #14 from Gints <gints.osis1 at gmail.com> ---
Not sure if this is helpful. Here's my situation and the way I fixed it. I'm running Safari 12.1

//I created a Blob from data, and appended that blob to more data which mostly failed with "WebKitBlobResource error 1"

const blob1 = new Blob([1,2,3],{type: "octet/stream"});
const finalBlob = new Blob([blob1,[4,5,6]],{type: "octet/stream"});
window.URL.createObjectURL(finalBlob); // fails 8/10 times on Safari

//To fix it I first gathered the data arrays and created a single Blob instead

const data = [[1,2,3],[4,5,6]]
const finalBlob = new Blob(data,{type: "octet/stream"});
window.URL.createObjectURL(finalBlob); // works always

-- 
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/20190611/1de29cae/attachment.html>


More information about the webkit-unassigned mailing list