Bug 63999 - Web Inspector: Add support for clearing cache and cookies from network panel.
Summary: Web Inspector: Add support for clearing cache and cookies from network panel.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Vsevolod Vlasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 08:57 PDT by Vsevolod Vlasov
Modified: 2011-08-05 10:11 PDT (History)
11 users (show)

See Also:


Attachments
Patch (25.83 KB, patch)
2011-07-06 10:05 PDT, Vsevolod Vlasov
pfeldman: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod Vlasov 2011-07-06 08:57:48 PDT
Add support for clearing cache and cookies from network panel.
Comment 1 Vsevolod Vlasov 2011-07-06 10:05:17 PDT
Created attachment 99848 [details]
Patch
Comment 2 WebKit Review Bot 2011-07-06 10:14:12 PDT
Comment on attachment 99848 [details]
Patch

Attachment 99848 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/8995070
Comment 3 Pavel Feldman 2011-07-07 00:02:21 PDT
Comment on attachment 99848 [details]
Patch

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

r+ with nits.

> LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled:14
> +    internals.setInspectorResourcesDataSizeLimits(document, 10 * 1000 * 1000, 1000 * 1000);

This should be a part of the network-test.js

> Source/WebCore/inspector/InspectorClient.h:55
> +    virtual void clearBrowserCache() { };

nuke ;

> Source/WebCore/inspector/InspectorResourceAgent.cpp:478
> +void InspectorResourceAgent::clearBrowserCache(ErrorString* errorString)

Mac build failed with unused errorString

> Source/WebCore/inspector/InspectorResourceAgent.cpp:483
> +void InspectorResourceAgent::clearBrowserCookies(ErrorString* errorString)

ditto

> Source/WebKit/chromium/public/WebDevToolsAgentClient.h:62
> +    virtual void clearBrowserCache() { };

nuke ;
Comment 4 Vsevolod Vlasov 2011-07-07 03:47:28 PDT
Committed r90553: <http://trac.webkit.org/changeset/90553>
Comment 5 Vsevolod Vlasov 2011-07-07 03:48:52 PDT
Fixed nits except for this one.

> > LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled:14
> > +    internals.setInspectorResourcesDataSizeLimits(document, 10 * 1000 * 1000, 1000 * 1000);
> 
> This should be a part of the network-test.js
I'll deal with it here https://bugs.webkit.org/show_bug.cgi?id=64078