Bug 209172
| Summary: | Download of Blob URL fails when Pin Tab | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Thanh Ngo <vietthanhbk1994> |
| Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | aestes, beidson, cdumez, henning, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 12 | ||
| Hardware: | PC | ||
| OS: | macOS 10.14 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=197441 | ||
Thanh Ngo
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)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/60611822>
Henning Stummer
We encountered the same issue with: Safari 13.1, iOS 13.4, WebKit 605.1.15
Chris Dumez
(In reply to Henning Stummer from comment #2)
> We encountered the same issue with: Safari 13.1, iOS 13.4, WebKit 605.1.15
Is this about pinned tabs on iPadOS?
This particular bug is about Safari 12 on macOS. We did fix the bug in Safari 13 on macOS (and I am actually not able to reproduce this issue on Safari 13 on macOS).
Issue may remain on iPadOS 13 though but this would be a separate bug.
Chris Dumez
*** This bug has been marked as a duplicate of bug 197441 ***
Chris Dumez
(In reply to Chris Dumez from comment #3)
> (In reply to Henning Stummer from comment #2)
> > We encountered the same issue with: Safari 13.1, iOS 13.4, WebKit 605.1.15
>
> Is this about pinned tabs on iPadOS?
>
> This particular bug is about Safari 12 on macOS. We did fix the bug in
> Safari 13 on macOS (and I am actually not able to reproduce this issue on
> Safari 13 on macOS).
>
> Issue may remain on iPadOS 13 though but this would be a separate bug.
I might be wrong but I don't think we support pinned tabs on iOS.