Summary: | Add WKPageLoadData and WKPageLoadDataWithUserData SPI to support loading arbitrary data blobs | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sam Weinig <sam> | ||||
Component: | New Bugs | Assignee: | Sam Weinig <sam> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Sam Weinig
2013-05-17 09:58:26 PDT
Created attachment 202106 [details]
Patch
Comment on attachment 202106 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202106&action=review > Source/WebKit2/UIProcess/API/C/WKPage.h:369 > +WK_EXPORT void WKPageLoadData(WKPageRef page, WKDataRef data, WKStringRef MIMEType, WKStringRef encoding, WKURLRef baseURL); > +WK_EXPORT void WKPageLoadDataWithUserData(WKPageRef page, WKDataRef data, WKStringRef MIMEType, WKStringRef encoding, WKURLRef baseURL, WKTypeRef userData); Do these need to be distinct? Can't we just have a userData param in LoadData? (In reply to comment #2) > (From update of attachment 202106 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=202106&action=review > > > Source/WebKit2/UIProcess/API/C/WKPage.h:369 > > +WK_EXPORT void WKPageLoadData(WKPageRef page, WKDataRef data, WKStringRef MIMEType, WKStringRef encoding, WKURLRef baseURL); > > +WK_EXPORT void WKPageLoadDataWithUserData(WKPageRef page, WKDataRef data, WKStringRef MIMEType, WKStringRef encoding, WKURLRef baseURL, WKTypeRef userData); > > Do these need to be distinct? Can't we just have a userData param in LoadData? I am trying to keep consistency. Committed r150271: <http://trac.webkit.org/changeset/150271> |