Bug 96372 - [WK2][WKTR] TestRunner needs to implement clearApplicationCacheForOrigin
Summary: [WK2][WKTR] TestRunner needs to implement clearApplicationCacheForOrigin
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 04:05 PDT by Chris Dumez
Modified: 2012-09-11 05:32 PDT (History)
3 users (show)

See Also:


Attachments
Patch (8.81 KB, patch)
2012-09-11 04:10 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-09-11 04:05:53 PDT
TestRunner needs to implement clearApplicationCacheForOrigin.

It is needed by the following test cases:
  http/tests/appcache/origin-delete.html
  http/tests/appcache/origin-usage.html
Comment 1 Chris Dumez 2012-09-11 04:10:29 PDT
Created attachment 163328 [details]
Patch
Comment 2 Kenneth Rohde Christiansen 2012-09-11 04:55:13 PDT
Comment on attachment 163328 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=163328&action=review

> Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:98
> +WK_EXPORT void WKBundleClearApplicationCacheForOrigin(WKBundleRef bundle, WKStringRef origin);
>  WK_EXPORT void WKBundleSetAppCacheMaximumSize(WKBundleRef bundle, uint64_t size);
>  WK_EXPORT uint64_t WKBundleGetAppCacheUsageForOrigin(WKBundleRef bundle, WKStringRef origin);

Why are these api's inconsistent? AppCache vs ApplicationCache. That should really be fixed
Comment 3 Chris Dumez 2012-09-11 05:05:10 PDT
(In reply to comment #2)
> (From update of attachment 163328 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=163328&action=review
> 
> > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:98
> > +WK_EXPORT void WKBundleClearApplicationCacheForOrigin(WKBundleRef bundle, WKStringRef origin);
> >  WK_EXPORT void WKBundleSetAppCacheMaximumSize(WKBundleRef bundle, uint64_t size);
> >  WK_EXPORT uint64_t WKBundleGetAppCacheUsageForOrigin(WKBundleRef bundle, WKStringRef origin);
> 
> Why are these api's inconsistent? AppCache vs ApplicationCache. That should really be fixed

I agree with you but do you want me to do this in the same patch?
Comment 4 Kenneth Rohde Christiansen 2012-09-11 05:18:09 PDT
Nope, another patch and please make sure that users of these API's are informed... ie add Anders Carlson or Sam Weinig
Comment 5 Chris Dumez 2012-09-11 05:22:51 PDT
(In reply to comment #4)
> Nope, another patch and please make sure that users of these API's are informed... ie add Anders Carlson or Sam Weinig

Sure. Can I get cq+ for this patch then?
Comment 6 WebKit Review Bot 2012-09-11 05:32:02 PDT
Comment on attachment 163328 [details]
Patch

Clearing flags on attachment: 163328

Committed r128173: <http://trac.webkit.org/changeset/128173>
Comment 7 WebKit Review Bot 2012-09-11 05:32:06 PDT
All reviewed patches have been landed.  Closing bug.