[Webkit-unassigned] [Bug 174076] There is no way for WKWebView to access or download blob subresource contents
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 7 09:10:02 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=174076
Chris Dumez <cdumez at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cdumez at apple.com
--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
(In reply to Dan Saunders from comment #3)
> Here is a basic repro:
> https://jsfiddle.net/dsaunders45459/9h5yocvp/
>
> var data = new Blob(["test"], {
> type: 'text/plain;charset=utf-8'
> });
>
> var save_link = document.createElementNS("http://www.w3.org/1999/xhtml",
> "a");
> var object_url = window.URL.createObjectURL(data);
> save_link.href = object_url;
> save_link.download = "testfile.txt";
> var event = new MouseEvent("click");
> save_link.dispatchEvent(event);
>
>
> decidePolicyForNavigationAction gets called with
> "blob:https://jsfiddle.net/7d0fb8d6-1a27-4b33-aaa0-9e17e4108b69" URL, but
> there is no way to download that file. The WebKit2 MiniBrowser does
> decisionHandler(WKNavigationActionPolicyAllow) for this request and you can
> see it results in a no-op.
I don't think the WK2 Minibrowsers supports downloads of any kind?
--
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/20170707/c037ce74/attachment.html>
More information about the webkit-unassigned
mailing list