WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 27322
Inspector: Create New DOM Storage Items via DataGrid
https://bugs.webkit.org/show_bug.cgi?id=27322
Summary
Inspector: Create New DOM Storage Items via DataGrid
Joseph Pecoraro
Reported
2009-07-15 17:15:42 PDT
The DataGrid for DOM Storage (localStorage and sessionStorage) should be more interactive. This will allow a lot more interaction, including creating Elements.
Attachments
Make DOM Storage DataGrid More Interactive
(5.52 KB, patch)
2009-07-15 17:29 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Make DOM Storage DataGrid More Interactive
(5.98 KB, patch)
2009-07-27 15:40 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Fixed the Loop
(5.91 KB, patch)
2009-07-28 21:38 PDT
,
Joseph Pecoraro
timothy
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2009-07-15 17:29:04 PDT
Created
attachment 32821
[details]
Make DOM Storage DataGrid More Interactive - Added a "CreationDataGridNode" type that can delete its special data and transform back into a normal DataGridNode. - Added a reference in the DataGrid to a CreationDataNode if one exists: @see addCreationNode() - Clicking anywhere in the excess space will select the bottom row (an existing blank row) - DOM Storage specific logic forces it to select the leftmost td (to set a Key) I see a potential problem with sorting the GridData table. However, sorting wasn't working for me to begin with (was it ever working). However, the special CreationDataNode, if it exists, has this.isCreationNode and thus can easily be sorted last.
Timothy Hatcher
Comment 2
2009-07-27 15:02:57 PDT
Comment on
attachment 32821
[details]
Make DOM Storage DataGrid More Interactive
> + if (this._editingNode.isCreationNode) { > + element = this._editingNode._element.children[0]; // Leftmost Column > + }
No need for the braces here. What does the creation row look like?
Joseph Pecoraro
Comment 3
2009-07-27 15:29:56 PDT
This is what the functionality looks like:
http://screencast.com/t/ngFWrjWN6M
Updating the patch with a few style fixes and that "select()" the creation row so that you don't accidently delete something in the background. That new patch will be up in a second.
Joseph Pecoraro
Comment 4
2009-07-27 15:40:56 PDT
Created
attachment 33577
[details]
Make DOM Storage DataGrid More Interactive NOTES: - Style fixes - Added the select() call to prevent unwanted deletions
Timothy Hatcher
Comment 5
2009-07-28 21:14:21 PDT
Comment on
attachment 33577
[details]
Make DOM Storage DataGrid More Interactive
> + var cnt = 0; > + for (var i in this.columns) > + emptyData[cnt++] = '';
This looks funny. Shouldn't this just be: for (var column in this.columns) emptyData[column] = '';
David Levin
Comment 6
2009-07-28 21:30:16 PDT
Comment on
attachment 32821
[details]
Make DOM Storage DataGrid More Interactive Clearing r+ on obsolete patch to move out of commit queue.
Joseph Pecoraro
Comment 7
2009-07-28 21:38:46 PDT
Created
attachment 33689
[details]
Fixed the Loop
Joseph Pecoraro
Comment 8
2009-07-28 21:42:36 PDT
(In reply to
comment #5
)
> (From update of
attachment 33577
[details]
) > > + var cnt = 0; > > + for (var i in this.columns) > > + emptyData[cnt++] = ''; > > This looks funny. Shouldn't this just be: > > for (var column in this.columns) > emptyData[column] = '';
Done.
Timothy Hatcher
Comment 9
2009-07-28 21:55:12 PDT
http://trac.webkit.org/changeset/46519
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug