Bug 127816

Summary: Web Inspector: [REGRESSION(r162931)] Tab navigation broken in DataGrid
Product: WebKit Reporter: Diego Pino <dpino>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Diego Pino 2014-01-28 16:09:06 PST
Tab navigation in the DataGrid doesn't work properly after r162931. How to reproduce:

* Fill a DataGrid (for example LocalStorage) with two rows of data.
* Edit row1.key and press tab.

Expected result: cursor moves to row1.value.
Actual result: cursor moves to row2.key.

After r162931, columnIdentifier is a string. It's necessary to change comparisons of columnIdentifier in 'moveToNextIfNeeded' (function that handles tab navigation) to string values.
Comment 1 Radar WebKit Bug Importer 2014-01-28 16:09:56 PST
<rdar://problem/15931228>
Comment 2 Diego Pino 2014-01-28 16:17:04 PST
Created attachment 222528 [details]
Patch
Comment 3 Timothy Hatcher 2014-01-28 16:26:44 PST
Comment on attachment 222528 [details]
Patch

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

> Source/WebInspectorUI/UserInterface/DataGrid.js:361
>                      return this._startEditingColumnOfDataGridNode(currentEditingNode, 1);

There are a few 1s and 0s in this function that should also be strings for clarity. Right now they are being converted later into string.

> Source/WebInspectorUI/UserInterface/DataGrid.js:375
>                      return this._startEditingColumnOfDataGridNode(currentEditingNode, 0);

Another 0, but there are more.
Comment 4 Timothy Hatcher 2014-01-28 16:36:29 PST
This code is so confused… it assumes only two columns with numeric identifiers. Sigh.
Comment 5 Diego Pino 2014-01-29 03:01:20 PST
Created attachment 222562 [details]
Patch
Comment 6 Diego Pino 2014-01-29 04:28:31 PST
Created attachment 222566 [details]
Patch
Comment 7 WebKit Commit Bot 2014-01-29 05:53:15 PST
Comment on attachment 222566 [details]
Patch

Clearing flags on attachment: 222566

Committed r163015: <http://trac.webkit.org/changeset/163015>
Comment 8 WebKit Commit Bot 2014-01-29 05:53:17 PST
All reviewed patches have been landed.  Closing bug.