[Webkit-unassigned] [Bug 61205] Web Inspector: Cache XHR content in backend, do not use initialContentSet for XHRs.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 05:48:21 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61205


Yury Semikhatsky <yurys at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #94770|                            |review-
               Flag|                            |




--- Comment #10 from Yury Semikhatsky <yurys at chromium.org>  2011-05-26 05:48:21 PST ---
(From update of attachment 94770)
View in context: https://bugs.webkit.org/attachment.cgi?id=94770&action=review

> Source/WebCore/inspector/InspectorResourceAgent.h:61
>  class EventsCollector;

Please move EventsCollector up to keep alphabetic order.

> Source/WebCore/inspector/InspectorResourceAgent.h:124
> +    NetworkResourcesData* resourcesData() { return m_resourcesData.get(); }

resourcesData() is not used outside InspectorResourceAgent, so it should be private or inlined.

> Source/WebCore/inspector/NetworkResourcesData.cpp:94
> +        resourceData->content.append(content);

It may occur that ensureFreeSpace has just removed resourceData from m_resourceDataDeque and reset its accumulated content in which case the content here will be corrupted.

> Source/WebCore/inspector/NetworkResourcesData.h:34
> +#include <wtf/text/StringHash.h>

Remove this include?

> Source/WebCore/inspector/NetworkResourcesData.h:68
> +    ~NetworkResourcesData() { }

style: please move destructor to the next line after the constructor. 

Also, you should delete all values in the destructor. r- for this.

-- 
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