[webkit-reviews] review denied: [Bug 83012] Web Inspector: localStorage items are not updated when the storage changes : [Attachment 141666] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 14 08:30:14 PDT 2012

Pavel Feldman <pfeldman at chromium.org> has denied Vivek Galatage
<vivekgalatage at gmail.com>'s request for review:
Bug 83012: Web Inspector: localStorage items are not updated when the storage

Attachment 141666: Patch

------- Additional Comments from Pavel Feldman <pfeldman at chromium.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=141666&action=review

Looks good. Couple of comments inline.

> Source/WebCore/inspector/InspectorDOMStorageAgent.cpp:194
> +    if (!m_frontend && !m_enabled)

&& -> || ?

> Source/WebCore/inspector/InspectorDOMStorageAgent.cpp:206
> +    m_frontend->domstorage()->updateDOMStorage(id);

Following naming pattern should be used for the protocol methods:

> Source/WebCore/inspector/InspectorInstrumentation.cpp:921
> +    if (!inspectorAgent || !inspectorAgent->developerExtrasEnabled())

no need to check for developer extras here.

> Source/WebCore/inspector/InspectorInstrumentation.h:1161
> +    if (InstrumentingAgents* instrumentingAgents =

Should have

> LayoutTests/inspector/storage-panel-dom-storage-update.html:30
> +    function dumpDataGrid() {

Here and below: You should keep { on the next line.

> LayoutTests/inspector/storage-panel-dom-storage-update.html:96
> +	       setTimeout(viewUpdatedAfterRemoval, 0 );       

setTimeout will not necessarily do what you expect. Running after pending
dispatches should be more than enough. Also, you should only use it when
absolutely necessary. It is often more reliable to do InspectorTest.addSniffer
and sniff for the UI update you are interested in.

> LayoutTests/inspector/storage-panel-dom-storage-update.html:119
> +    InspectorTest.runTestSuite([

We always declare these functions inline.

More information about the webkit-reviews mailing list