Bug 112402 - Web Inspector: [Resources] Local Storage: duplicate keys are processed inappropriately.
Summary: Web Inspector: [Resources] Local Storage: duplicate keys are processed inappr...
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: Eugene Klyuchnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 21:58 PDT by Eugene Klyuchnikov
Modified: 2013-03-18 05:55 PDT (History)
9 users (show)

See Also:


Attachments
Patch (4.74 KB, patch)
2013-03-15 02:49 PDT, Eugene Klyuchnikov
no flags Details | Formatted Diff | Diff
Patch (2.87 KB, patch)
2013-03-18 03:52 PDT, Eugene Klyuchnikov
no flags Details | Formatted Diff | Diff
Patch (3.35 KB, patch)
2013-03-18 05:21 PDT, Eugene Klyuchnikov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Klyuchnikov 2013-03-14 21:58:56 PDT
Original issue:
https://code.google.com/p/chromium/issues/detail?id=195100
Dev Tools -- Resources -- Unable to delete newly added keys under Local Storage.

Recent changes removed forced "refresh" on editing.
So duplicate keys do not combine with existing ones in UI.
Comment 1 Eugene Klyuchnikov 2013-03-15 01:55:30 PDT
Qualification: in case value is changed - all goes well.
But in case value is not changed (it was already empty) - we receive no notification -> dupe is not removed.
Comment 2 Eugene Klyuchnikov 2013-03-15 02:49:44 PDT
Created attachment 193265 [details]
Patch
Comment 3 Eugene Klyuchnikov 2013-03-18 03:52:39 PDT
Created attachment 193521 [details]
Patch

less-invasive-patch
Comment 4 Alexander Pavlov (apavlov) 2013-03-18 04:23:00 PDT
Comment on attachment 193521 [details]
Patch

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

> Source/WebCore/ChangeLog:8
> +        Avoid duplicates in case value is not updated (consequently,

Please give a more detailed description of what's wrong and how this patch fixes the bug (the issue summary is not helpful either.)

> Source/WebCore/inspector/front-end/DOMStorageItemsView.js:250
> +        masterNode.select();

Either this line should follow the method call or the method should be named, _removeDupesAndSelect.
Comment 5 Eugene Klyuchnikov 2013-03-18 05:15:42 PDT
Comment on attachment 193521 [details]
Patch

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

>> Source/WebCore/ChangeLog:8
>> +        Avoid duplicates in case value is not updated (consequently,
> 
> Please give a more detailed description of what's wrong and how this patch fixes the bug (the issue summary is not helpful either.)

Done.

>> Source/WebCore/inspector/front-end/DOMStorageItemsView.js:250
>> +        masterNode.select();
> 
> Either this line should follow the method call or the method should be named, _removeDupesAndSelect.

Addressed.
Comment 6 Eugene Klyuchnikov 2013-03-18 05:21:05 PDT
Created attachment 193539 [details]
Patch
Comment 7 WebKit Review Bot 2013-03-18 05:55:07 PDT
Comment on attachment 193539 [details]
Patch

Clearing flags on attachment: 193539

Committed r146057: <http://trac.webkit.org/changeset/146057>
Comment 8 WebKit Review Bot 2013-03-18 05:55:10 PDT
All reviewed patches have been landed.  Closing bug.