Commit Graph

98 Commits

Author SHA1 Message Date
Patrick Brosset
f5d60234ab Bug 1355064 - Build the markup-view DOM manually rather than with templater; r=jdescottes
MozReview-Commit-ID: LbULOa7UGq2
2017-04-10 14:55:58 +02:00
Julian Descottes
9ec43d704c Bug 1344504 - do not catch click events closing the event tooltip;r=gl
MozReview-Commit-ID: 3ebzs0RwbJo
2017-03-15 18:47:27 +01:00
Julian Descottes
41c85f5c76 Bug 1344504 - handle rejected promise when showing/hiding box model in markup view;r=gl
MozReview-Commit-ID: C3aGIk1RUOU
2017-03-15 08:44:31 +01:00
Florian Quèze
b15de4893d Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
Florian Quèze
c7eae86054 Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
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
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
Alexandre Poirot
c9206ab97d Bug 1323550 - Lazy load and setup HTML editor from the markup view. r=jdescottes
MozReview-Commit-ID: Cunz2hIsXaE
2016-12-14 09:52:26 -08:00
Tom Tromey
c5e4df9459 Bug 1316630 - move PrefObserver to devtools/shared/prefs.js; r=jdescottes
MozReview-Commit-ID: C4KxFxv2LVT
2016-11-14 15:46:19 -07:00
Tom Tromey
1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Tom Tromey
8b3e8ed91f Bug 1314047 - remove some unnecessary eslint "globals" from inspector; r=gregtatum
MozReview-Commit-ID: EUYMiF7dNKz
2016-10-27 05:34:33 -06:00
Wes Kocher
20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey
d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Phil Ringnalda
bd8c30d361 Merge f-t to m-c, a=merge
MozReview-Commit-ID: 2EvSTWDWg4t
2016-10-19 18:27:04 -07:00
Xue Fuqiao
d623793a35 Bug 1111599 - Shift-click while in picker mode selects the element but doesn't stop the picker; r=pbro
MozReview-Commit-ID: 2yUKBJylxF1
2016-10-18 15:50:51 +08:00
Greg Tatum
c3ca469ef1 Bug 1224304 - Handle canceling the element picker better r=gl
This changes the behavior of the element picker so that when it is
cancelled the previously selected DOM node is re-scrolled into view.
Additionally the existing behavior of the keyboard shortcuts for the
element picker was broken when the devtools toolbox was docked. The main
content area was not being focused, so the keyboard shortcuts for the
element picker were not being used. When the toolbox is detached, the
focus event is still not fired, as it's not desirable to have the
content pop into view over the devtools.

Finally there is now an additional implementation of the Escape shortcut
when the devtools are focused. The console Escape shortcut is ignored
until the element picker has been disabled making disabling the element
picker consistent irrelevant of the context.

MozReview-Commit-ID: HxENmPBoTcD
2016-10-06 13:40:53 -05:00
Gabriel Luong
e98ed26912 Bug 1308823 - Refactor the markup view into smaller modules r=jdescottes 2016-10-10 23:37:05 -04: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
Gabriel Luong
876454c8a9 Bug 1307481 - Part 1: Move Tooltip.js and HTMLTooltip.js into widgets/tooltip/ r=jdescottes 2016-10-04 22:48:49 -04:00
Julian Descottes
2a31f510db Bug 1303611 - cache value on attribute container to avoid redrawing unchanged attributes;r=pbro
MozReview-Commit-ID: 55cR17diVT5
2016-10-01 01:36:26 +02: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
Sébastien Blin
df276d2326 Bug 1297383 - Highlight current node via,the selector highlighter for rule 'element {}'. r=pbro 2016-09-28 06:25:00 -04:00
Patrick Brosset
215c6c8851 Bug 1304679 - Box-model highlighter now highlights text nodes; r=gl
MozReview-Commit-ID: 8gZvTE1tZuH
2016-09-23 09:57:37 +02:00
Julian Descottes
2283f05cf3 Bug 1265887 - migrate devtools/ from PluralForm.jsm to plural-form.js;r=tromey
MozReview-Commit-ID: 7I7djgqcrnr
2016-08-27 18:42:33 +02:00
Julian Descottes
19dd82492c Bug 1295608 - Migrate devtools/client/inspector to use l10n.js instead of Services.string;r=pbro
MozReview-Commit-ID: KD0AmgDTpbX
2016-08-25 17:18:30 +02:00
Sebastian Hengst
e511035cb5 Backed out changeset 8ad552de5fa6 (bug 1295608) for not finding devtools/client/shared/l10n in mochitest-chrome. r=backout 2016-08-25 14:21:04 +02:00
Julian Descottes
e6f9a3715d Bug 1295608 - Migrate devtools/client/inspector to use l10n.js instead of Services.string;r=pbro
MozReview-Commit-ID: AmAkgdqoRr5
2016-08-25 10:35:04 +02:00
Tom Tromey
449f8d410e Bug 1290230 - move clipboard helper to new devtools platform module; r=gregtatum
MozReview-Commit-ID: 53tOehW9kxo
2016-08-12 12:52:40 -06:00
Tom Tromey
850dac53cb Bug 1292242 - move scrollIntoViewIfNeeded to its own module; r=bgrins
MozReview-Commit-ID: 8diNiffQmDB
2016-08-17 11:13:54 -06: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
Julian Descottes
cad89b14c2 Bug 1290086 - use multiline inplace editor for markupview autocompletes;r=gl
MozReview-Commit-ID: AcWBWdq5q7Q
2016-08-04 14:49:25 +02:00
Tom Tromey
6892a50d74 Bug 1292574 - make CSS a global rather than a module in devtools loader; r=gregtatum
MozReview-Commit-ID: 5RYwDAW4wxt
2016-08-05 08:32:59 -06: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
Greg Tatum
5ecf2bffa5 Bug 1275939 - replace domUtils.getCSSValuesForProperty in inplace-editor.js r=tromey
MozReview-Commit-ID: KtuAWnNsnaq
2016-08-01 09:34:00 +02:00
Tom Tromey
88a37a520c Bug 1290234 - remove uses of nsIDOMNode constants from inspector; r=gregtatum
MozReview-Commit-ID: G73Dn8shdkp
2016-07-28 14:03:50 -06:00
Tom Tromey
6589041a89 Bug 1278473 - use Services.focus, not nsIFocusManager, in devtools; r=gregtatum
MozReview-Commit-ID: Ep3G0S62clm
2016-07-25 12:24:36 -06: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
49f12d5acb Bug 1277834 - Silence inspector warnings and add promise rejection handlers; r=jdescottes
MozReview-Commit-ID: 6NhwdVTH57R
2016-07-21 23:29:19 +02:00
Joseph Yeh
1341d9ee45 Bug 1274609 - Replace uses of Ci.nsIDOMNodeFilter constants. r=jlongster
MozReview-Commit-ID: 1OeiMaVZ7tm
2016-07-11 20:28:00 +02:00
Julian Descottes
7bcbd981b1 Bug 1280360 - markupview: a11y fix tabindex when modifying attributes;r=pbro
Modify the template for markup view attributes to accept a tabindex attribute.
The markup for attributes might be generated and inserted in an already focused
markup view line. In this case the DOM element should be created with a tabindex
of 0 instead of -1.

MozReview-Commit-ID: AaMUS1h1o0C
2016-07-01 23:34:21 +02:00
Alexandre Poirot
2c044cf33c Bug 1284259 - Prevent exception while dismissing event tooltip details. r=jdescottes
MozReview-Commit-ID: 4BjCwSv8QdB
2016-07-13 13:15:01 +02:00
Julian Descottes
9c689d6870 Bug 1285206 - Enable xul panel for some devtools tooltips;r=bgrins
Set useXulWrapper to true for markup view image previews and rule view
tooltips.

Also slightly changed the logic in HTMLTooltip.js so that useXulWrapper is only
true when we are in a XUL context.

MozReview-Commit-ID: 9EkQYLLAn7C
2016-07-08 15:46:42 +02: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
Greg Tatum
04061ecb15 Bug 1226898 - Make autoscroll distance depend on the document height r=pbro 2016-07-05 11:52:25 -07:00
Steve Melia
70589f1d77 Bug 1269226: Explicitly handle node deletion in inspector breadcrumbs. r=pbro 2016-05-25 00:06:28 +01:00