[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 00:17:06 PDT 2017


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

--- Comment #3 from Dan Saunders <dasau at microsoft.com> ---
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.

-- 
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/e98bf9f7/attachment.html>


More information about the webkit-unassigned mailing list