[Webkit-unassigned] [Bug 75242] New: [WK2] add new APIs on WKURLResponse for getting content type and expected content length
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 27 00:31:58 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=75242
Summary: [WK2] add new APIs on WKURLResponse for getting
content type and expected content length
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Enhancement
Priority: P2
Component: WebKit2
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: keunsoon.lee at samsung.com
Hi,
This is a suggestion for WK2 API, not a bug.
I think it would be useful to add new APIs to obtain content type and expected content length on WKURLResponse.
Here are some specific use cases.
For content type;
application can use this to determine policy when receiving decidePolicyForResponse for WKPagePolicyClient.
For example, application can extract a MIMEType from WKURLResponseRef, and decide to download for some specific MIME type instead of calling WKFramePolicyListenerUse().
For content length;
application can use this to draw progress bar when getting callbacks for WKContextDownloadClient.
Application cannot know the downloaded percentage unless it obtains expected content length.
I think these APIs have port-widely common usage, so suggested them to add WK2 API.
By the way, to activate these APIs, all port should add encode/decode for ResourceResponse's mimeType() and expectedContentLength() on each WebCoreArgumentCoderXXX.
If you think this patch is acceptable, I'll take care of it.
Thank you.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list