[Webkit-unassigned] [Bug 158801] WKWebView should expose API for download of a file.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 27 15:43:30 PDT 2018


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

--- Comment #9 from Eugene But <eugenebut at chromium.org> ---
Another useful usecase for Download API are blob:// URLs. Consider the following JavaScript:

var b = URL.createObjectURL(new File(["content"],
    "filename.txt", {
        type: "application/octet-stream",
        lastModified: new Date()
     }));
document.getElementById("link").href = b;
document.getElementById("link").innerHTML = b;


This script will create the link, and tapping on the link will call decidePolicyForNavigationResponse:.
The URL for passed response will be a blob URL (something like blob:https://<hostname>/<id-of-blob-url>).
And there is no way for the browser to download that URL, because only WKWebView knows which data backs this URL up.

-- 
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/20180927/5852333b/attachment.html>


More information about the webkit-unassigned mailing list