[Webkit-unassigned] [Bug 209172] New: Download of Blob URL fails when Pin Tab
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 17 00:32:06 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=209172
Bug ID: 209172
Summary: Download of Blob URL fails when Pin Tab
Product: WebKit
Version: Safari 12
Hardware: PC
OS: macOS 10.14
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: vietthanhbk1994 at gmail.com
When Pin Tab, and download file. (If not Pin Tab, it's working)
- The first time it will download and have file name "unknown".
- The second time, A new tab displaying the error: Safari can't open the page "blob:https://domain/[ blob id ]". The error is: "The operation couldn't be completed. (WebkitBlobResource error 1.)" (WebkitBlobResource:1)
Code:
const url = window.URL.createObjectURL(new Blob(["Name ,Email"], { type: 'application/csv' }))
const downloadLink = document.createElement('a')
downloadLink.href = url
downloadLink.download = "demo.csv"
document.body.appendChild(downloadLink)
downloadLink.click()
window.URL.revokeObjectURL(url)
document.body.removeChild(downloadLink)
--
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/20200317/d0c14cea/attachment-0001.htm>
More information about the webkit-unassigned
mailing list