Bug 146316 - [SOUP] NetworkCache: Make NetworkProcess::clearDiskCache actually clear the the resources depending on the date
Summary: [SOUP] NetworkCache: Make NetworkProcess::clearDiskCache actually clear the t...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Soup
Depends on:
Blocks:
 
Reported: 2015-06-25 08:20 PDT by Carlos Garcia Campos
Modified: 2015-06-27 00:43 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.07 KB, patch)
2015-06-25 08:23 PDT, Carlos Garcia Campos
svillar: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2015-06-25 08:20:23 PDT
And make sure the completion handler is called, as well. This functionality is already implemented in Storage::clear(), so we just need to pass the time point and completion handler to Cache::clear().
Comment 1 Carlos Garcia Campos 2015-06-25 08:23:11 PDT
Created attachment 255555 [details]
Patch
Comment 2 WebKit Commit Bot 2015-06-25 08:25:06 PDT
Attachment 255555 [details] did not pass style-queue:


ERROR: Source/WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp:156:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sergio Villar Senin 2015-06-26 00:14:21 PDT
Comment on attachment 255555 [details]
Patch

Don't we have layout tests for this?
Comment 4 Carlos Garcia Campos 2015-06-26 00:35:23 PDT
(In reply to comment #3)
> Comment on attachment 255555 [details]
> Patch
> 
> Don't we have layout tests for this?

I don't think so, this is more for an API test I think, and there will be one for GTK+ when we expose clear_cache in WebKitWebsiteDataManager. Writing that unit tests is how I noticed this issue, indeed.
Comment 5 Carlos Garcia Campos 2015-06-27 00:43:34 PDT
Committed r186022: <http://trac.webkit.org/changeset/186022>