Commit Graph

35 Commits

Author SHA1 Message Date
Florian Quèze
63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Patrick Brosset
96320d2b1f Bug 1320182 - Remove -moz-element background from breadcrumbs and use linear-gradient instead; r=jdescottes
MozReview-Commit-ID: 6TNwZs0PHA4
2017-01-12 10:50:39 +01: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
Gabriel Luong
a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Julian Descottes
3479010529 Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu
2016-08-25 17:02:50 +02:00
Julian Descottes
72b9025753 Bug 1297713 - remove calls to document.commanddispatcher in breadcrumbs.js;r=pbro
MozReview-Commit-ID: 6CLe1huT1cf
2016-08-24 17:29:30 +02:00
Julian Descottes
156ceb6e2f Bug 1294220 - part1: Move ellipsis character to a localized string in properties file;r=bgrins
The ellipsis character displayed by devtools is now relying on a localized string
in devtools/client/shared.properties instead of a complex preference.

The lazy loading of the ellipsis string has been removed, the ellipsis is retrieved
once when the client/shared/l10n.js file is loaded.

The ellipsis property on the LocalizationHelper instances has been removed in favor
of an ELLIPSIS export on the l10n.js module.

All the previous callers using either LocalizationHelper::ellipsis or retrieving the
intl.ellipsis preference have been migrated to rely on the ELLIPSIS export of l10n.js

MozReview-Commit-ID: 4JG0qbJGCw9
2016-08-20 22:09:03 +02:00
Yura Zenevich
f002aef023 Bug 1295564 - fixing aria-activedescendant handling in breadcrumbs when they are unchecked. r=bgrins
MozReview-Commit-ID: OzhA1o8ja9
2016-08-18 10:46:33 -04:00
Wes Kocher
838ef99b70 Merge fx-team to central, a=merge CLOSED TREE 2016-08-16 16:37:28 -07:00
Sami Jaktholm
1010b1ef92 Bug 1284125 - Fix intermittent browser_inspector_delete-selected-node-02.js. r=jdescottes
The intermittency is caused by a race condition. When delete is clicked in the
context menu, markupview changes the selection and sends the removeNode request
to the server. The selection change triggers the usual inspector update process
in the client. At the same time, the server removes the node and queues the
mutation triggered by the removal. And here lies the issue.

If the inspector components finish updating BEFORE the removal mutation is
received from the server, the test continues before the breadcrumbs learn
about the deletion and the test fails. If the update is still pending when
the mutation is received, the breadcrumbs have time to update before the
test continues to make assertions about the breadcrumb contents.

The fix here is to make the test to ensure that the breadcrumbs have seen the
deletion before it continues. To enable that, the breadcrumbs need to tell
the world that it has been updated even if the breadcrumbs were just trimmed
and a non-element node was selected that does not trigger the full update
process (early return in the code).

As the inspector update process has been collecting cruft for years and tests
make a lot of assumptions about the emitted events, it's not safe to trigger a
new inspector update in this special case. Therefore, only the
breadcrumbs-updated event is emitted in this special case and the test waits
for that if the deleted node is still present in the breadcrumbs.

MozReview-Commit-ID: AjC6k6SzLCu
2016-08-13 10:14:01 +03:00
Steve Melia
ce2110f398 Bug 1275399 - Change inspector breadcrumbs to add RTL functionality. r=jdescottes 2016-06-06 01:25:39 +01:00
Yura Zenevich
7b27177364 Bug 1272011 - improving keyboard accessibility for the inspector breadcrumbs. r=bgrins
MozReview-Commit-ID: A18Ul4HlrlT
2016-08-08 09:53:51 -04:00
James Long
24266d6355 Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04: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
Steve Melia
3b8e36dbdd Bug 1290063 - Call correct function on mouseout for breadcrumb; r=gasolin 2016-08-01 21:53:22 +01:00
Eric Rahm
f88c2ff35a Bug 1179048 - Use mouseout instead of mouseleave in devtools. r=fitzgen
Using mouseleave in chrome code generates a warning in docshell about
performance which notes mouseout should be used instead. This patch replaces
usage of mouseleave with mouseout across the devtools codebase.
2015-07-20 12:13:00 -07: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
Patrick Brosset
b0f21bf9d4 Bug 1277834 - Add missing promise rejection handler to breadcrumbs; r=jdescottes
MozReview-Commit-ID: C7WDd3CsMSX
2016-07-20 10:30:43 +02:00
Steve Melia
70589f1d77 Bug 1269226: Explicitly handle node deletion in inspector breadcrumbs. r=pbro 2016-05-25 00:06:28 +01:00
Brian Grinstead
56c23c5a7b Bug 1266478 - Integrate Menu API with inspector;r=pbro
This patch converts the inspector's context menu implementation away from
directly using XUL menus, and updates a number of tests to match.

MozReview-Commit-ID: L8aL23BUmXS
2016-06-10 15:52:27 -07:00
Julian Descottes
7985853271 Bug 1277501 - convert inspector breadcrumbs to shortcut-key API;r=ochameau
Existing keyboard shortcuts have been reimplemented using the new shortcut-key
api.

A keypress handler was removed  on the breadcrumbs buttons, it had no use
since a focused button is always selected.

MozReview-Commit-ID: JTSRxwQGSlh
2016-06-02 12:04:14 +02:00
Patrick Brosset
9bc2697c07 Bug 1277571 - Bind the scroll function to this in breadcrumbs to pass it to event handlers; r=jdescottes
MozReview-Commit-ID: bi6ix3k3Ey
2016-06-02 16:32:46 +02:00
Steve Melia
81f097688a Bug 1259812: Fix tests to account for change in tooltip text and breadcrumb lifecycle;r=pbro
MozReview-Commit-ID: 6KJOAhhgmkX
2016-05-29 22:58:32 +01:00
Steve Melia
8bf5bd11b4 Bug 1259812: Replace XUL elements with XHTML in inspector breadcrumbs;r=pbro
MozReview-Commit-ID: 4LQfN5GwZH5
2016-05-31 20:29:50 +01:00
Ryan VanderMeulen
0c0394915c Backed out changeset 9cfc40ea2dbd (bug 1269226) for browser_inspector_delete-selected-node-02.js timeouts. 2016-05-26 12:53:04 -04:00
Steve Melia
c80af8ad65 Bug 1269226 - Explicitly handle node deletion in inspector breadcrumbs. r=pbro 2016-05-25 00:06:28 +01: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
Patrick Brosset
3f5122c270 Bug 1264907 - Don't show the firstChild of the current selection in breadcrumbs; r=jdescottes
The breadcrumbs widget used to have a feature where it would show the first
child of the current selection even the DOM tree hadn't been expanded that
far yet.
This was to allow keyboard navigating the DOM through the breadcrumbs.
The breadcrumbs is a very rarely used widget and this code was unnecessarily
making things complex.
It was decided that this feature would be removed.
Instead, the breadcrumbs now act as simple linear elements in a toolbar and
you can keyboard navigate them with LEFT/RIGHT only. TAB/shift-TAB simply go
in/out of the breadcrumbs widget.

MozReview-Commit-ID: BmcaLnVBOBn
2016-04-15 12:03:33 +02:00
Steve Melia
75fb0d6431 Bug 1269915 - Remove right click menu from breadcrumbs;r=bgrins
MozReview-Commit-ID: 4mD2zcW7Awe
2016-05-04 22:48:15 +01:00
Tom Tromey
97b32ba364 Bug 1265840 - Remove uses of Services.tm from inspector. r=pbro
MozReview-Commit-ID: DQoXLeXKUn3
2016-04-19 13:33:54 -06:00
Patrick Brosset
1de169539a Bug 1262491 - Focus the newly inserted node in the markup-view when clicking the add button. r=jdescottes
MozReview-Commit-ID: FOyFBXT20Du
2016-04-14 13:06:41 +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
Alexandre Poirot
bb787b541e Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
J. Ryan Stinnett
a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00