RESOLVED DUPLICATE of bug 197441 209172
Download of Blob URL fails when Pin Tab
https://bugs.webkit.org/show_bug.cgi?id=209172
Summary Download of Blob URL fails when Pin Tab
Thanh Ngo
Reported 2020-03-17 00:32:06 PDT
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
Radar WebKit Bug Importer
Comment 1 2020-03-18 18:04:18 PDT
Henning Stummer
Comment 2 2020-04-23 04:07:44 PDT
We encountered the same issue with: Safari 13.1, iOS 13.4, WebKit 605.1.15
Chris Dumez
Comment 3 2020-04-23 12:58:04 PDT
(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
Comment 4 2020-04-23 12:58:12 PDT
*** This bug has been marked as a duplicate of bug 197441 ***
Chris Dumez
Comment 5 2020-04-23 13:01:09 PDT
(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.
Note You need to log in before you can comment on or make changes to this bug.