Bug 127816 - Web Inspector: [REGRESSION(r162931)] Tab navigation broken in DataGrid
Summary: Web Inspector: [REGRESSION(r162931)] Tab navigation broken in DataGrid
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-01-28 16:09 PST by Diego Pino
Modified: 2014-01-29 05:53 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.29 KB, patch)
2014-01-28 16:17 PST, Diego Pino
no flags Details | Formatted Diff | Diff
Patch (3.17 KB, patch)
2014-01-29 03:01 PST, Diego Pino
no flags Details | Formatted Diff | Diff
Patch (3.17 KB, patch)
2014-01-29 04:28 PST, Diego Pino
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.