[Webkit-unassigned] [Bug 178947] New: Need WebView API to load blob: resources

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 27 11:48:13 PDT 2017


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

            Bug ID: 178947
           Summary: Need WebView API to load blob: resources
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jonathan at e3software.com

The efforts to move to blob: URLs for pasted RTFD and image content that have landed in <https://trac.webkit.org/changeset/222119/webkit> and <https://trac.webkit.org/changeset/222839/webkit> are great for JavaScript clients, but not so great for Obj-C WebKit clients. As far as I can tell, there is no Obj-C WebKit API for accessing or loading the data for the blob: URLs that are now appearing inside pasted DOM content. 

We need API for this because our Mac app uses WebKit (legacy) as an HTML email editor (similar to Mail.app) and needs to be able to "import" the image resources that users paste into the editor. Prior to the above two changesets landing, we could access these resources inside -webView:shouldInsertNode:replacingDOMRange:givenAction: by doing basically the following:

WebResource *webResource = [range.commonAncestorContainer.ownerDocument.webFrame.dataSource subresourceForURL:imageURL];

However, this does not work for blob: URLs. Would be really great if there was a way to do this, otherwise we're kind of stuck. Thanks!

-- 
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/20171027/8a4c4d86/attachment.html>


More information about the webkit-unassigned mailing list