Bug 46272 - Web Inspector: Tree views can be collapsed/hidden using the keyboard arrows
Summary: Web Inspector: Tree views can be collapsed/hidden using the keyboard arrows
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Minor
Assignee: Alexander Pavlov (apavlov)
Depends on:
Reported: 2010-09-22 10:05 PDT by Rowan Beentje
Modified: 2012-01-03 12:54 PST (History)
10 users (show)

See Also:

Patch (4.93 KB, patch)
2011-12-29 02:50 PST, Alexander Pavlov (apavlov)
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rowan Beentje 2010-09-22 10:05:54 PDT
Many of the inspector panes appear to use tree views in the left-hand navigation to displays lists of items - for example, Resources has the list of resources; Profiles has a list of recorded profiles; Storage has multiple groups of databases, cookies etc; and Audits has a list of results.  If one of these items is selected and has focus, using the left arrow on the keyboard appears to collapse the treeview and hide all the items.

This appears to be the behaviour in both Safari 5.0.2 and the WebKit nightlies on OS X.

For example:
1) Go to the Resources view
2) Click on first item in the Resources list - the document.
3) Hit the left arrow

Expected result: Probably nothing should happen.

Actual result: the Resources list appears to be emptied.  Using the right arrow, the tree can be expanded again while it has focus; if the tree view lose focus while collapsed, there appears to be no way to restore it.
Comment 1 Alexander Pavlov (apavlov) 2011-12-29 02:50:55 PST
Created attachment 120727 [details]
Comment 2 Alexander Pavlov (apavlov) 2011-12-29 05:29:15 PST
Committed r103797: <http://trac.webkit.org/changeset/103797>
Comment 3 webkitx 2012-01-03 12:13:30 PST
I'm sure this behaviour is standard for tree views and for people with accessibility issues.
Comment 4 Rowan Beentje 2012-01-03 12:54:30 PST
Re: comment #3: this is absolutely standard behaviour for true tree views, for example those used in the redesigned Resources sidebar.  However the inspector also sometimes uses tree views to lay out content with headers, for example the Audits results list; these views weren't collapsable using the mouse as that wasn't an intended interaction, but were using the keyboard (usually accidentally!).

apavlov: Thanks for the patch, works a treat!