Commit Graph
1259 Commits
Author SHA1 Message Date
Julian Descottes d162f12420 Bug 1259834 - Create basic HTML tooltip API;r=bgrins
First implementation of HTML based tooltip to be used in devtools
instead of XUL panels. API is similar to the current API of
Tooltip.js

MozReview-Commit-ID: 8njiKBubLSj
2016-05-04 14:44:57 +02:00
J. Ryan Stinnett 7bdf3cf623 Bug 1270619 - Add missing imports instead of using globals. r=pbro
MozReview-Commit-ID: 28Xn7N9FSZr
2016-05-09 13:35:09 -05:00
Julian Descottes 897cbfdf3a Bug 1181717 - add tooltip=aHTMLTooltip to Tooltip.js iframes;r=pbro
MozReview-Commit-ID: 8A28hbquBHB
2016-05-06 19:55:02 +02:00
Jennifer Fong bb0e5b8001 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00
Tom Tromey e287963424 Bug 1270139 - don't use inIDOMUtils.colorToRGBA in devtools; r=pbro
Bug 1266842 missed a spot using colorToRGBA.  Changing this revealed
that the hsltorgb algorithm was a bit off; so this patch changes it to
be a js port of NS_HSL2RGB.

MozReview-Commit-ID: A94qE5K7b2L
2016-05-04 08:51:57 -06:00
Julian Descottes 468c098d3f Bug 1270462 - part2: tooltip toggle callback can resolve(false);r=bgrins,jsnajdr
Previously, the targetNodeCb used in TooltipToggle had an inconsistent API. If
returning synchronously, "false" would prevent the tooltip from appearing.
However, if using a promise, resolving "false" would still show the tooltip.
It was needed to reject the promise in this case to prevent the tooltip from
being displayed.

This commit makes TooltipToggle always expect a consistent return value from
this callback, whether it is synchronous, or using promises.
- true -> show the tooltip on the event target
- DOM node -> show the tooltip on the provided node
- false (or falsy value) -> do not show the tooltip

MozReview-Commit-ID: 7PIPwBJxjWO
2016-05-05 20:25:08 +02:00
Julian Descottes 2a7534a928 Bug 1270462 - part1: extract devtools tooltip toggle logic to separate file;r=bgrins,jsnajdr
The code used to make the tooltip appear/disappear when hovering targets
has been extracted to a separate class that can be shared between the
current Tooltip.js implementation and the upcoming HTMLTooltip.

MozReview-Commit-ID: UYSjPFeMYK
2016-05-06 14:54:30 +02:00
James Long ece81a7a77 Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
Tom Tromey 600bd87192 Bug 1270203 - make css-angle eslint-clean; r=nchevobbe
MozReview-Commit-ID: IfCMc8ewLDu
2016-05-05 12:26:24 -06:00
Tom Tromey b70b514a8a Bug 1270203 - move css-angle.js to devtools/client/shared; r=nchevobbe
MozReview-Commit-ID: BN3lF5xT61Z
2016-05-05 12:21:17 -06:00
Tom Tromey f37edb762d Bug 1265787 - Add javascript CSS lexer to devtools. r=pbro
MozReview-Commit-ID: BgbACHTTMtX
2016-04-29 11:21:22 -06:00
Jan Odvarko 4aac195bec Bug 1263404 - Fix condition in hasChildren. r=jryans 2016-05-04 14:56:43 +02:00
Lin Clark 593c10169b Bug 1264702 - [rep tests] Add tests for window rep. r=Honza 2016-05-03 10:59:00 -04:00
Lin Clark 2a15bfa191 Bug 1264692 - [rep tests] Add tests for object-with-url rep. r=Honza 2016-05-04 17:54:00 -04:00
Nick Fitzgerald 1ba5099d21 Bug 1269891 - Add more documentation comments to the Tree component; r=jlongster 2016-05-04 16:43:48 -07:00
Julian Descottes c38fcb8804 Bug 1260419 - part2: do not hide inplace editor autocomplete popup when scrolling;r=pbro
MozReview-Commit-ID: W5N9tFCyOM
2016-05-04 16:39:29 +02:00
Julian Descottes afba11f7a8 Bug 1260419 - part1: ruleview shows more CSS suggestions, with better sorting;r=pbro
Usability changes to the ruleview autocomplete:
- max suggestions is now capped to 500 to make sure as many suggestions as possible
  as possible are displayed
- vendor-prefixed properties are moved to the end of the list
- !important is no longer the first suggested item

MozReview-Commit-ID: AOfHyqS3n8s
2016-04-07 00:43:30 +02:00
Tom Tromey 3a49936872 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-05-04 08:02:03 -06:00
Tom Tromey 4f8ff02013 Bug 1268974 - make css-parsing-utils eslint-clean; r=pbro
MozReview-Commit-ID: 4iPN37XMbIy
2016-05-04 07:57:33 -06:00
Carsten "Tomcat" Book 59197809bb Backed out changeset 0c860fab34ea (bug 1263404) for causing test failures in browser_jsonview_filter.js 2016-05-04 12:28:03 +02:00
Carsten "Tomcat" Book 87b8e5aaa3 Backed out changeset f54c4f5fd0ed (bug 1265787) 2016-05-04 12:27:37 +02:00
Tom Tromey d6b9403946 Bug 1265787 - add javascript CSS lexer to devtools; r=pbro
MozReview-Commit-ID: BgbACHTTMtX
2016-04-29 11:21:22 -06:00
Jan Odvarko bd9060a7b4 Bug 1263404 - Fix condition in hasChildren; r=jryans 2016-05-03 19:57:21 +02:00
Alexandre Poirot 65233c11ad Bug 1265599 - Fix gcli toolbox button status when toolbox goes on and off. r=jwalker 2016-05-03 09:06:30 -07:00
Tom Tromey 78fad482bb Bug 1266842 - replace rgbToColorName, colorToRGBA, isValidCSSColor in devtools; r=pbro
MozReview-Commit-ID: G5Zly0HPJuv
2016-04-28 08:46:19 -06:00
Tom Tromey f2bf3cc37b Bug 1266842 - move css-color.js to devtools/client/shared; r=pbro
MozReview-Commit-ID: 9zS1Y4Ape2u
2016-04-28 08:41:40 -06:00
Lin Clark b07b420aa3 Bug 1264700 - [rep tests] Add tests for undefined rep. r=Honza 2016-05-02 10:02:00 +02:00
Aryeh Gregor c4a3296430 Bug 1264270 - Parser should output attributes in source order, not reversed; r=hsivonen,bgrins 2016-05-01 15:15:26 +03:00
Tom Tromey b0a9e9cb04 Bug 1266840 - Define XMLHttpRequest in devtools loader. r=jryans
MozReview-Commit-ID: 5F2UlTlzx1R
2016-05-12 13:51:51 -06:00
Yura Zenevich 19cad809d2 Bug 1242694 - improving inspector markup view accessibility (semantics and keyboard). r=gl
MozReview-Commit-ID: 4EvLALR4NIv
2016-05-19 16:50:23 -04:00
Carsten "Tomcat" Book 74de773d2c Backed out changeset 797e8190073f (bug 1265876) for memory leaks in browser_markup_mutation_02.js 2016-04-28 08:13:42 +02:00
Tom Tromey 323443bd29 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-04-21 11:20:14 -06:00
Tom Tromey 4ce916dafd Bug 1265772 - don't use Services.console or Console.jsm in devtools; r=bgrins
MozReview-Commit-ID: Ax4EwhRVE0R
2016-04-19 14:05:35 -06:00
Julian Descottes 8b9b1355a0 Bug 1178462 - Cancel inplace editor autocomplete on window blur;r=gl
MozReview-Commit-ID: BI9LHtUKta
2016-04-27 09:55:18 +02:00
Jarda Snajdr 3e433d3695 Bug 1205123 - Part 2: TreeWidget.js - set 'empty' attribute to parent when last child is removed. r=mratcliffe 2016-04-25 04:31:00 +02:00
Patrick Brosset e88d43e414 Bug 1069829 - 1 - Remove a usage of domUtils.cssPropertyIsValid in inplace-editor; r=tromey
cssPropertyIsValid was used only to find a compatible css unit when a number
was being incremented/decremented.
Because units are unlikely to be different between debuggees, a local DOM
node was used to validate the tested unit by applying and getting style on
the DOM node.

MozReview-Commit-ID: K0ldOgNRalg
2016-04-15 10:42:31 +02:00
Kris Maglione 40e88a5ba0 Bug 1238310: Follow-up: Fix some timing issues in tests. r=bustage
MozReview-Commit-ID: BjKiNO1T5yN
2016-04-23 23:56:28 -07:00
Jan Odvarko 116110dc51 Bug 1201475 - Implement DOM Panel; r=linclark, bgrins, helenvholmes
MozReview-Commit-ID: IMYSW7ObOSh
2016-02-09 23:23:29 +01:00
Carsten "Tomcat" Book c927a21d12 Backed out changeset f80643f3c767 (bug 1201475) for test failures in dt1 tests on a CLOSED TREE 2016-04-21 14:26:57 +02:00
Jan Odvarko 9673789d6e Bug 1264312 - DOM panel support for Firebug Theme; r=ntim
MozReview-Commit-ID: Cg2oSr4bbfP
2016-04-13 17:35:42 +02:00
Jan Odvarko c4a7e31ac3 Bug 1201475 - Implement DOM Panel; r=linclark, bgrins, helenvholmes
MozReview-Commit-ID: rNpieyIVNt
2016-02-09 23:23:29 +01:00
Gabriel Luong 60c64cec39 Bug 1266100 - [ESLint] Fix ESLint issues in devtools/client/shared/widgets/Spectrum.js r=tromey 2016-04-20 11:50:44 -04:00
Jarda Snajdr 23486fae96 Bug 1261785 - Part 2: use shared-head.js for storage inspector tests. r=mratcliffe 2016-04-19 01:44:00 +02:00
Jarda Snajdr 979fb418a0 Bug 1263906 - When starting to edit a storage inspector field, it scrolls away from the view. r=mratcliffe 2016-04-18 04:22:00 +02:00
Julian Descottes 36006cf0f1 Bug 1258114 - use invisible borders to drag devtools splitters on both sides;r=bgrins
Devtools splitters now have a clickable area on both sides of the splitter.
The previous layout provided a 3px clickable area (2px empty content + 1px
visible border).

The new layout uses invisible borders on both sides and a visible (clipped)
content. New draggable areas:
- side splitters : 1px left + 1px splitter + 4px right
- horizontal splitters : 2 px top + 1px splitter + 2px bottom

Variables are defined in splitters.css to adjust these settings.
Modified two test helpers opening context menus: the click should be
performed with a slight offset in order to avoid clicking on the splitter.

MozReview-Commit-ID: 94uFZoIBL7B
2016-04-15 12:36:17 +02:00
Carsten "Tomcat" Book 673188d00d Backed out changeset 4d5b0cdb72fe (bug 1258114) for m-oth test failures 2016-04-18 10:24:06 +02:00
Julian Descottes 567873489a Bug 1258114 - use invisible borders to drag devtools splitters on both sides;r=bgrins
Devtools splitters now have a clickable area on both sides of the splitter.
The previous layout provided a 3px clickable area (2px empty content + 1px
visible border).

The new layout uses invisible borders on both sides and a visible (clipped)
content. New draggable areas:
- side splitters : 1px left + 1px splitter + 4px right
- horizontal splitters : 2 px top + 1px splitter + 2px bottom

Variables are defined in splitters.css to adjust these settings.
Modified two test helpers opening context menus: the click should be
performed with a slight offset in order to avoid clicking on the splitter.

MozReview-Commit-ID: 94uFZoIBL7B
2016-04-15 12:36:17 +02:00
Sebastian Hengst d8628f4821 Backed out changeset 5d81dab28e18 (bug 1261785) 2016-04-17 12:27:33 +02:00
Jarda Snajdr 7e52af5ae5 Bug 1261785 - Part 2: Use shared-head.js for storage inspector tests. r=mratcliffe 2016-04-13 04:01:00 -04:00
Carsten "Tomcat" Book 7cfb31b143 Merge mozilla-central to fx-team 2016-04-11 11:48:20 +02:00