Commit Graph

34 Commits

Author SHA1 Message Date
Andrew Xia
8aeb675258 Bug 1327121 - open split console on esc press when inspector search selected r=jdescottes 2017-02-26 17:34:20 -08:00
Sebastian Hengst
c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tim Nguyen
67dab99cca Bug 1330074 - Enable no-self-assign, no-useless-call and no-useless-return in devtools/. r=jryans
MozReview-Commit-ID: A345G1QOOpm
2017-01-10 22:14:03 +00:00
Gabriel Luong
a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Tim Nguyen
b3ac2c3253 Bug 1311925 - Remove yellow highlight from search boxes. r=gl
MozReview-Commit-ID: Bxu6uMKw7LM
2016-11-03 19:18:16 +00:00
Gabriel Luong
4943d23a3b Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-08 09:49:07 -04:00
Wes Kocher
591a7b2fd1 Backed out 2 changesets (bug 1307481) for mass dt bustage a=backout
Backed out changeset 91c6a72e5d0d (bug 1307481)
Backed out changeset a9f9f5611272 (bug 1307481)
2016-10-07 11:54:38 -07:00
Gabriel Luong
52c4111f6c Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-07 13:33:52 -04:00
Patrick Brosset
ee4a9fbf43 Bug 733880 - Add the missing copy/paste/cut menus on all text boxes in inspector; r=jdescottes
This change makes use of the toolbox's textBox menu in all of the
inspector's text fields.
Previously, right-clicking in a text field in the inspector would give
various results: either the tool's context menu would open, or nothing
would happen, or the usual copy/paste/cut menu would open.

Now, right-clicking in any text field in the inspector always shows the
copy/paste/cut menu.

MozReview-Commit-ID: DwkhBqY7Qzj
2016-09-23 19:21:09 +02:00
Fred Lin
8696b6c7f2 Bug 1295081 - Fix inspector-searchinput-clear display behavior; r=gl
MozReview-Commit-ID: B7VCwAHYHyJ
2016-08-17 14:28:01 +08:00
Steve Chung
7cc98e6a45 Bug 1295390 - Don't hold search result after clearing inspector-searchbox by inspector-searchinput-clear. r=ntim
MozReview-Commit-ID: xmLhuQBgaV
2016-08-16 18:18:48 +08:00
Tom Tromey
0f64c73c7e Bug 1296412 - use System.appinfo, not services.js, in inspector; r=bgrins
MozReview-Commit-ID: 8TjHP1GBb1i
2016-08-18 14:08:19 -06:00
Wes Kocher
65067abe4a Merge m-c to fx-team, a=merge 2016-08-17 17:26:23 -07:00
Fred Lin
cea3f7830e Bug 1294937 - The context menu does not appear when right-click on the inspector-searchbox. r=gl
MozReview-Commit-ID: 8Ebs5jeYlkq
2016-08-15 11:23:16 +08:00
Fred Lin
5e59eda65e Bug 1294929 - remove no-match class when tap clear button; r=gl
MozReview-Commit-ID: 8OSFZ1T6B5U
2016-08-15 10:59:37 +08:00
gasolin
8ab2ffdf4a Bug 1265759 - Create an HTML replacement for inspector Search Box;r=gl
MozReview-Commit-ID: Elt4NGNh3Pf
2016-07-27 12:08:01 +08:00
Tom Tromey
4de4e8490a Bug 1292184 - remove lazy requires from inspector; r=jlongster
MozReview-Commit-ID: AQMlkXAlVeX
2016-08-02 09:14:29 -06:00
Wes Kocher
821d0c747f Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change
2016-08-16 22:07:30 -07:00
Julian Descottes
e49ad837f4 Bug 1285591 - fix accessibility in devtools autocomplete using suggestion list clone;r=bgrins
Devtools autocomplete popups are hosted in a different document from the input
being autocompleted. To allow accessibility tools such as screen readers to still
make sense of this widget, a clone of the suggestion list is now inserted in the same
document as the input, and the aria-activedescendant attribute is updated on the input
accordingly.

MozReview-Commit-ID: 8rFjF6nvEyU
2016-07-22 17:35:03 +02:00
Tom Tromey
b0d4eda4a7 Bug 1264649 - enable reject-some-requires rule for inspector; r=pbro
MozReview-Commit-ID: AX58XXecRcL
2016-07-21 09:04:47 -06:00
Julian Descottes
5bc2788731 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
2016-07-07 16:32:42 +02:00
Ruturaj
789137ad80 Bug 1253195 - Separate filter and search boxes visually, and make the text styling consistent. r=ntim
MozReview-Commit-ID: 1KZQA9X44Qi
2016-07-08 23:03:00 +02:00
Tom Tromey
44ebe29d9c Bug 1290227 - add replacement module for DOM_VK_ constants; r=bgrins
MozReview-Commit-ID: INmMxfP8ZuL
2016-08-08 15:41:37 -06:00
Patrick Brosset
0225a5f1aa Bug 1274964 - ESLint cleanup of devtools/client/inspector; r=jryans
MozReview-Commit-ID: HCRVzU6NdM4
2016-05-23 10:41:02 +02:00
Tom Tromey
86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
Nicolas Chevobbe
deedc3ec29 Bug 1270215 - Ensure we display properly cased node names all across the devtools. r=jdescottes
Add a displayName property on the NodeActor, which compute from Element.prefix + Element.localName.
The computation is made by a getNodeDisplayName function which can be imported wherever needed.
Edit some tests to ensure we correctly display node names.

MozReview-Commit-ID: 6z0G3ynbMoU
2016-05-12 07:18:58 +02:00
J. Ryan Stinnett
530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Nicolas Chevobbe
03a5920798 Bug 1245365 - Fix markup view search with attribute selector. r=pbro
Add an ATTRIBUTE search state to better handle attribute's search.
Edit test to make sure we handle it right

MozReview-Commit-ID: ADcIJRbhjO
2016-04-21 21:54:03 +02:00
Yura Zenevich
e70fd9daa3 Bug 1242852 - (part 2) making inspector toolbar keyboard accessible. r=gl
MozReview-Commit-ID: BmLtydkQao7
---
 devtools/client/inspector/breadcrumbs.js           | 41 ++++++++++
 devtools/client/inspector/inspector-search.js      |  6 ++
 devtools/client/inspector/test/browser.ini         |  3 +
 .../browser_inspector_breadcrumbs_keyboard_trap.js | 79 ++++++++++++++++++
 .../test/browser_inspector_search_keyboard_trap.js | 93 ++++++++++++++++++++++
 devtools/client/inspector/test/head.js             | 17 ++++
 6 files changed, 239 insertions(+)
 create mode 100644 devtools/client/inspector/test/browser_inspector_breadcrumbs_keyboard_trap.js
 create mode 100644 devtools/client/inspector/test/browser_inspector_search_keyboard_trap.js
2016-04-12 11:53:54 -04:00
Steve Melia
9488ced949 Bug 1256658 - Make inspector search next/previous based on ctrl-g by default, and cmd-g on osx;r=bgrins
MozReview-Commit-ID: F5NsNGmoeL8
2016-03-26 15:21:23 +00:00
Steve Melia
b1d5229f0a Bug 1259060 - Add shift+enter to navigate to previous result in inspector search;r=bgrins
MozReview-Commit-ID: 6Y8tz7dML5s
2016-03-25 13:58:27 +00:00
Patrick Brosset
ccb51e88c5 Bug 1225514 - Simple fix for searching with attribute selectors in the inspector; r=bgrins 2015-12-03 09:56:07 +01:00
Brian Grinstead
061eed57c9 Bug 835896 - Make inspector searchbox also provide results matching text or attributes in the page;r=pbrosset 2015-11-10 21:48:57 -08:00