gecko-dev/devtools/client/debugger/content
Julian Descottes d03c3018a5 Bug 1266456 - part9: use HTMLTooltip for autocomplete-popup;r=bgrins
Modify the devtools autocomplete-popup to rely on a HTMLTooltip instance
instead of a XUL panel.

Other than the straightforward migration to HTML, the main difference with
the new implementation is that the richlistbox has now been replace with a
simple HTML list element. The former XUL widget used to be able to take the
focus from the input it was linked to.

This is no longer the case. Most autocomplete users were always keeping the
focus in the input, except for the inspector-search, which was moving the
focus back and forth between the input and the autocomplete's richlistbox.
Now the focus is always in the input. A practical example to illustrate how
this changes the UX: before when the user had the focus on the first element
of the list, pressing "DOWN" would keep the element selected but visually move
the focus in the input. Now the selection simply cycles to the next item.

Even though this introduces a difference in behaviour compared to the previous
implementation, it makes the inspector search UX consistent with the other
autocomplete widgets used in devtools.

Another difference is about the display for the inspector-search. The position
of the autocomplete popup used to be above the input. This is now impossible to
achieve because the search input is at the top of the toolbox and the HTML tooltip
can not exceed the limits of the toolbox.

For this #2 issue, either we manage to use XUL panel wrappers, in which case, the
autocomplete will be displayed as it used to. Or we can invert the order in which
items are inserted and explicitly ask for the autocomplete to be displayed below the
input. I prefered not to change this here in order to make the code change easier to
understand, but it should be addressed in a follow-up.

MozReview-Commit-ID: jH9aXm9Jvz

--HG--
extra : rebase_source : 57267be0d214ed807f3152838c4123400ab7b7e3
2016-07-07 16:32:42 +02:00
..
actions Bug 1265869 - Add task.js and use in devtools. r=jryans 2016-05-17 13:07:55 -06:00
reducers Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey 2016-05-18 12:49:23 -05:00
views Bug 1266456 - part9: use HTMLTooltip for autocomplete-popup;r=bgrins 2016-07-07 16:32:42 +02:00
constants.js Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey 2016-05-18 12:49:23 -05:00
globalActions.js Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey 2016-05-18 12:49:23 -05:00
moz.build Bug 1200798 - refactor sources and breakpoints in debugger to use redux r=ejpbruel 2015-12-01 16:59:00 -05:00
queries.js Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey 2016-05-18 12:49:23 -05:00
utils.js Bug 1265869 - Add task.js and use in devtools. r=jryans 2016-05-17 13:07:55 -06:00