Commit Graph

52 Commits

Author SHA1 Message Date
yulia
8fec0e1f69 Bug 1508655 - BoxModel highlighter move nodeHighlighter to highlighterFront; r=ochameau
Depends on D12319

Differential Revision: https://phabricator.services.mozilla.com/D12320

--HG--
extra : moz-landing-system : lando
2018-11-23 10:50:21 +00:00
Julian Descottes
eac312a589 Bug 1500936 - Run eslint --fix on devtools/client/inspector for comma-dangle;r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D9409

--HG--
extra : moz-landing-system : lando
2018-10-23 07:08:24 +00:00
Gabriel Luong
1f1665c9f1 Bug 1464192 - Part 21: Lazy initialize KeyShortcuts on focus of the HTMLBreadcrumbs. r=pbro 2018-09-28 13:51:10 -04:00
Gabriel Luong
4ac81fe9aa Bug 1494162 - Part 22: Remove onUnderflow call in ArrowScrollBox init. r=pbro 2018-09-28 11:33:32 -04:00
Belén Albeza
d037fb20b3 Bug 1473917 - Show #shadow-root in breadcrumbs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3017

--HG--
extra : moz-landing-system : lando
2018-08-10 10:55:41 +00:00
Julian Descottes
1903f696ea Bug 1465873 - part6: Allow selection and breadcrumbs to walk from shadowRoot to host element;r=bgrins
By returning the shadow root as the parentNode of some elements, the breadcrumbs could no longer
display the chain of elements correctly, because shadowRoot.parentNode is null.

This changeset:
- returns the host actor ID as part of the shadowRoot form
- adds a parentOrHost convenience method on the node form
- uses said method in selection and breadcrumbs when walking up the ancestor chain

I don't think we should unconditionally return the host element as the parentNode of the
shadow root, because that is too disconnected from the reality.

MozReview-Commit-ID: JLeDb4VuT1q

--HG--
extra : rebase_source : 33f1f6e8dd221754a4a8fb32f954e5d277110917
2018-06-28 13:11:08 +02:00
Julian Descottes
640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Julian Descottes
df3e1babbb Bug 1053898 - Update framework/selection setNodeFront signature to use object argument;r=gl
Both reason and isSlotted arguments of setNodeFront are optional, switching to an
object argument avoids weird calls such as setNodeFront(front, null, true) in favor
of a more explicit setNodeFront(front, { isSlotted: true });

MozReview-Commit-ID: A6nziH3QQYe

--HG--
extra : rebase_source : e5bde9e74369e1b0fb2e1d1a0a2b31a0131caacd
2018-03-05 14:15:57 +01:00
yulia
817d9b5e5b Bug 1382601 - update inspector to use new event emitter. r=pbro
MozReview-Commit-ID: 8hGCpkC1eHz

--HG--
extra : rebase_source : 02a10f5defe536cd316633d3fb8e2dace40f9099
2018-03-16 14:27:46 +01:00
Narcis Beleuzu
d7db70bc02 Backed out changeset 3ab8cedcdaf0 (bug 1382601) for talos g2 failures on /markup.js
--HG--
extra : rebase_source : debcafd996d5638bde8c3c1bd95305138404f8ef
2018-03-16 23:17:25 +02:00
yulia
254e553c41 Bug 1382601 - update inspector to use new event emitter. r=nchevobbe,pbro
MozReview-Commit-ID: 8hGCpkC1eHz

--HG--
extra : rebase_source : bb5333bf3cf38a8c0d13249477e40fcd668eb71c
2018-03-16 14:27:46 +01:00
J. Ryan Stinnett
23ff4cc75d Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
yulia
14627be8a8 Bug 1382605 - Fix 6 tests failures on devtools/client/shared due the EventEmitter refactoring r=nchevobbe
MozReview-Commit-ID: EaFYqaY2M79

--HG--
extra : rebase_source : 242b560f9e675bcda84ff0f566a67ecde54e9475
2018-03-07 10:17:03 +01:00
Alexandre Poirot
30e8f95fb9 Bug 1425964 - Prevent sync reflows by using document.dir to check for locale direction. r=Honza,jdescottes
MozReview-Commit-ID: H8uYVtnNXLz

--HG--
extra : rebase_source : f87b933f2a1ef385977c6d265dc448589632917d
2018-01-11 08:22:56 -08:00
ZER0
ba9681c84a Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher
db97e61fc7 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc

--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0
93e1efc17d Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Patrick Brosset
e0aa635c20 Bug 1320182 - Remove -moz-element background from breadcrumbs and use linear-gradient instead; r=jdescottes
MozReview-Commit-ID: 6TNwZs0PHA4

--HG--
extra : rebase_source : 3e5a915f3f4c4ab43501e9fe2448925493725adc
2017-01-12 10:50:39 +01:00
Sebastian Hengst
cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Gabriel Luong
1e634e99df Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Julian Descottes
e5437139db Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu

--HG--
extra : rebase_source : b56c4e40820c5c14a9a0761639e772964d818e30
extra : intermediate-source : 3416f2e554aeebce04723fab282c5bac73bfb1bc
extra : source : e46c6780770414844e138b2a69cf7a6a9da4192e
2016-08-25 17:02:50 +02:00
Julian Descottes
70b2769bc6 Bug 1297713 - remove calls to document.commanddispatcher in breadcrumbs.js;r=pbro
MozReview-Commit-ID: 6CLe1huT1cf

--HG--
extra : rebase_source : 65590d2b4875432cd42a1513b74b7f8f7022d55e
2016-08-24 17:29:30 +02:00
Julian Descottes
5f705ce337 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

--HG--
extra : rebase_source : b513f69a00335c63c46e085b0101ca4cf884fb08
extra : source : 9cea22b583c7d615be644dd50161902c35f2f1b7
2016-08-20 22:09:03 +02:00
Yura Zenevich
4d6c4f875f 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
073e095b66 Merge fx-team to central, a=merge CLOSED TREE 2016-08-16 16:37:28 -07:00
Sami Jaktholm
84f52725fd 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

--HG--
extra : rebase_source : 64260d447973c352a5df064bc7f5630b6b92fe81
2016-08-13 10:14:01 +03:00
Steve Melia
d572bfba4b Bug 1275399 - Change inspector breadcrumbs to add RTL functionality. r=jdescottes 2016-06-06 01:25:39 +01:00
Yura Zenevich
565d305ee3 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
0b2677dddc 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
586ae2d8aa Bug 1292184 - remove lazy requires from inspector; r=jlongster
MozReview-Commit-ID: AQMlkXAlVeX

--HG--
extra : rebase_source : 819f3e4f5d70f71514700ba21de8a25aace5b5f0
2016-08-02 09:14:29 -06:00
Steve Melia
fe1e609e3f Bug 1290063 - Call correct function on mouseout for breadcrumb; r=gasolin 2016-08-01 21:53:22 +01:00
Eric Rahm
120f36bc75 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
46650a73f4 Bug 1264649 - enable reject-some-requires rule for inspector; r=pbro
MozReview-Commit-ID: AX58XXecRcL

--HG--
extra : rebase_source : ec04a97c61a8cd5ba04e1f144df3f6799852d08b
2016-07-21 09:04:47 -06:00
Patrick Brosset
29a105a09c Bug 1277834 - Add missing promise rejection handler to breadcrumbs; r=jdescottes
MozReview-Commit-ID: C7WDd3CsMSX

--HG--
extra : rebase_source : afd75f3e560ce77722630005b227649a4b5dc3ba
2016-07-20 10:30:43 +02:00
Steve Melia
22d172ab4b Bug 1269226: Explicitly handle node deletion in inspector breadcrumbs. r=pbro 2016-05-25 00:06:28 +01:00
Brian Grinstead
ad19bb6b11 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
eac10d79af 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

--HG--
extra : rebase_source : 4466162a2cf2bd77cb50ee77ea5843c973ceb5b2
2016-06-02 12:04:14 +02:00
Patrick Brosset
69624b414f Bug 1277571 - Bind the scroll function to this in breadcrumbs to pass it to event handlers; r=jdescottes
MozReview-Commit-ID: bi6ix3k3Ey

--HG--
extra : rebase_source : 1252ab8e944f0cc17052e3ff4f5ed2cb29fa614e
2016-06-02 16:32:46 +02:00
Steve Melia
a847380c46 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
be63605b00 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
43398fbb69 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
32fa6f3a81 Bug 1269226 - Explicitly handle node deletion in inspector breadcrumbs. r=pbro 2016-05-25 00:06:28 +01:00
Nicolas Chevobbe
62400e0cd7 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

--HG--
extra : transplant_source : %E0%AFM%88D%BC%AD%08%1D%A4%FB%F2%5D%9E%D3%90%DE%94%EC%CD
2016-05-12 07:18:58 +02:00
Patrick Brosset
45c01647ea 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

--HG--
extra : rebase_source : 1673a6c9da02cf8b3b542e4ce905ccb239250aa7
2016-04-15 12:03:33 +02:00
Steve Melia
0fb164e885 Bug 1269915 - Remove right click menu from breadcrumbs;r=bgrins
MozReview-Commit-ID: 4mD2zcW7Awe
2016-05-04 22:48:15 +01:00
Tom Tromey
cc930b7621 Bug 1265840 - Remove uses of Services.tm from inspector. r=pbro
MozReview-Commit-ID: DQoXLeXKUn3

--HG--
extra : transplant_source : %97%E9%DF%0DD%D5wk0%B1%07Q%10%0BI%A45JH%A6
2016-04-19 13:33:54 -06:00
Patrick Brosset
9d131c2b58 Bug 1262491 - Focus the newly inserted node in the markup-view when clicking the add button. r=jdescottes
MozReview-Commit-ID: FOyFBXT20Du

--HG--
extra : transplant_source : %BD%D7%3D%0B%C1h%3B%BC%95%D0f%C4%10%A0G%B4%E4%DF%99Y
2016-04-14 13:06:41 +02:00
Yura Zenevich
5d862fb3dc 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

--HG--
extra : rebase_source : 5399de18ce0f5385088e17c247ffe251ccdf7c63
2016-04-12 11:53:54 -04:00