[Webkit-unassigned] [Bug 190351] New: Download of Blob URL fails in Safari 12.0 (13606.2.11)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 8 09:32:11 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=190351
Bug ID: 190351
Summary: Download of Blob URL fails in Safari 12.0 (13606.2.11)
Product: WebKit
Version: Other
Hardware: Macintosh
OS: macOS 10.13
Status: NEW
Severity: Critical
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: iain at scirra.com
Created attachment 351778
--> https://bugs.webkit.org/attachment.cgi?id=351778&action=review
Download methods
Overview:
In our webapp construct 3 users can download a copy of their project. When saving projects are serialized into a blob ( zip format ) on the client side. To download the file we create a Blob URL, attach it to a new HTMLAnchorElement, specify the "download" attribute as the file name ( "myproject.c3p" ) and use the HTMLElement.prototype.click function. This method works correctly in Safari 11 and in chrome. However, now it opens a new tab displaying a WebKitBlobResource error 1 and no further information.
I think this may be related to the content blocker. On the first attempt to repeat this a "popup blocked" error will appear in the address bar and allowing it will download and unzip the project into a folder called "unknown" ( which I consider broken also ). Subsequent attempts will display the WebkitBlobResource error.
I have attempted to create a simple replication for this, but even when copying the exact code into a new document and calling in the same fashion ( the development tools REPL ) it only repeats in the actual web application.
I have included the download methods, but it's fairly standard stuff.
Steps to reproduce:
1. Visit https://editor.construct.net
2. Select "new project"
3. Select "menu > project > save as > download a copy"
4. Select "ok" ( uses default name )
5. Allow popup
6. Observe "unknown" folder appearing in downloads folder
7. Repeat steps 2 - 4
8. Observe error tab
Actual results:
A new tab displaying the error: Safari can't open the page "blob:https://editor.construct.net/[ blob id ]". The error is: "The operation couldn't be completed. (WebkitBlobResource error 1.)" (WebkitBlobResource:1)
Expected Results:
A new file in the downloads folder called "New project.c3p"
--
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/20181008/2b58c630/attachment.html>
More information about the webkit-unassigned
mailing list