Commit Graph
161 Commits
Author SHA1 Message Date
Julian Descottes f474a9cf9b Bug 1283705 - wait for popuphidden to fix intermittent test browser_tableWidget_mouse_interaction;r=miker
MozReview-Commit-ID: GFyH7f1bXpR
2016-07-15 11:23:14 +02:00
Patrick Brosset c1a3c73892 Bug 1262439 - 8 - Re-implement telemetry in the eye-dropper; r=miker
MozReview-Commit-ID: 2XDhAb3iXdu
2016-06-09 16:02:08 +02:00
Patrick Brosset 3e7653ff54 Bug 1262439 - 5 - Move eyedropper btn to inspector and update gcli command; r=bgrins
This moves the eyedropper button from the toolbar into the inspector,
therefore the old eyedropper command isn't needed anymore,
or at least not as it was.
The button in the inspector simply uses the pickColorFromPage inspector
actor method.
And to preserve a eyedropper gcli command, a new simpler one was added.

MozReview-Commit-ID: B1yr1EqLFBD
2016-07-20 16:06:42 +02:00
Patrick Brosset e19007d87a Bug 1262439 - 1 - Introduce a new eye-dropper highlighter; r=zer0
This is mostly porting code from the XUL eye-dropper over to a new
highlighter file.
While I have tested this locally, this highlighter isn't yet used
in devtools.
This will come in later patches.

MozReview-Commit-ID: IF0puLu5Yc7
2016-07-21 14:35:14 +02:00
J. Ryan Stinnett ce0bf1aef3 Bug 1240907 - Clean up code style in test-actor-registry.js. r=ochameau
MozReview-Commit-ID: GKAKgnVDimD
2016-07-21 12:20:55 -05:00
Tom Tromey b8ed8d9516 Bug 1287620 - don't de-quote identifier tokens in parseDeclarations; r=pbro
MozReview-Commit-ID: GecLWyVsNAy
2016-07-19 12:47:07 -06:00
Gabriel Luong 48d32bdbbf Bug 1247729 - Move the box model panel into the computed styles panel r=jdescottes 2016-07-19 04:30:13 -04:00
Julian Descottes 902c53d236 Bug 1286523 - fix autocomplete popup position in RTL locales;r=bgrins
MozReview-Commit-ID: HRC1ialFBVj
2016-07-13 18:52:37 +02:00
Julian Descottes 7b0f804f9d Bug 1286553 - HTMLTooltip: consume only left click events;r=bgrins
MozReview-Commit-ID: Hr0Lwv8Zx5C
2016-07-14 16:13:11 +02:00
Sebastin Santy 3e0753b8da Bug 1275546 - Use CSS lexer to parse angle values in css-angle.js . r=nchevobbe
MozReview-Commit-ID: DVqlbrruf2b
2016-07-08 06:29:00 +02:00
Wes Kocher 030aa43efd Backed out changeset a097b61f5810 (bug 1247729) for timeouts in browser_layout_update-after-reload.js a=backout 2016-07-13 14:26:06 -07:00
Gabriel Luong a84aea77a3 Bug 1247729 - Move the box model panel into the computed styles panel r=jdescottes 2016-07-13 12:20:57 -07:00
Julian Descottes 60357c35c6 Bug 1283454 - migrate MDN docs tooltip to use HTML;r=ochameau
MozReview-Commit-ID: 50DceNmgGAQ
2016-07-05 14:39:52 +02:00
Julian Descottes b8d27afa33 Bug 1284461 - HTMLTooltip: use variable height only if height==Infinity;r=bgrins
MozReview-Commit-ID: LTraHLeEEp4
2016-07-05 14:35:15 +02:00
Alexandre Poirot 7c6449f3d2 Bug 1267414 - Convert color picker, cubic bezier and filter widgets to HTML Tooltip. r=jdescottes 2016-07-11 01:26:02 -07:00
Julian Descottes fb6ac141e2 Bug 1266456 - part10: fix tests for autocomplete-popup HTMLTooltip migration;r=bgrins
Most test modifications deal with listening to the proper events.
As mentioned in the parent commit, the keyboard navigation for the
inspector-search changed a bit with this change, so the related test
case is using a slightly different scenario.

MozReview-Commit-ID: BgSa69bSSFB
2016-07-10 19:10:21 +02:00
Julian Descottes f1c3ec9cff Bug 1267403 - HTMLTooltip tests: destroy tooltips at the end of tests;r=ochameau
MozReview-Commit-ID: 2jMKxlsWId2
2016-07-04 16:02:37 +02:00
Julian Descottes 34cb206f63 Bug 1267403 - HTMLTooltip: add useXulWrapper option when displayed in a XUL document;r=ochameau
The HTMLTooltip supports an additional configuration parameter "useXulWrapper".
When set to true, if the tooltip is displayed in a XUL document, a XUL panel
will be used as an additional container for the tooltip.

This allows the tooltip to be displayed anywhere on the screen and can be
useful when displayed in small toolboxes.

MozReview-Commit-ID: 63kv4vAeW5R
2016-07-06 14:50:44 +02:00
Alexandre Poirot f7db7561a5 Bug 1283186 - Only print error instead of throwing when a key shortcut is invalid. r=bgrins 2016-06-30 01:29:56 -07:00
Ben Kelly 572b3ee933 Bug 1279389 P2 Relax the timing in browser_telemetry_toolboxtabs_storage.js to account for osfile worker startup. r=jryans 2016-06-28 18:47:55 -07:00
Julian Descottes 9d649d3159 Bug 1266456 - part6: HTMLTooltip show() now accepts x,y offsets;r=bgrins
The autocomplete popup is displayed relatively to an anchor, but will be
shifted on the x-axis in order to be aligned with the word being completed.

To support this, the HTMLTooltip show() method now accepts x and y offsets.

MozReview-Commit-ID: 1cR3XFPdcVy
2016-06-20 21:07:08 +02:00
Julian Descottes a7428b281b Bug 1266456 - part5: HTMLTooltip setContent() support "auto" width parameter;r=bgrins
The autocomplete popup defines its width by finding the longest label
to display and then applying a "width:Xch" to its content, where X is
the length of the longest label + 3.

In order to support this, the HTMLTooltip setContent() methods allows to
use width: "auto" (which also becomes the default value). In this case,
the HTMLTooltip show() method will automatically compute the preferred
width for the tooltip. It will first calculate the tooltip height, then
measure the width of the tooltip for this computed height and use it as
the preferred width.

MozReview-Commit-ID: KDxZNB3KDdR
2016-06-23 17:30:50 +02:00
Julian Descottes f6f57e0f12 Bug 1266456 - part4: HTMLTooltip support XUL docs using page instead of window;r=ochameau
Some test documents are using a <page> object instead of a <window> object.
When inserting the tooltip container  inside of the document, the HTMLTooltip
will now insert the container in the documentElement

MozReview-Commit-ID: F57vP2lfvrg
2016-06-22 19:44:59 +02:00
Julian Descottes d83fbffb78 Bug 1266456 - part3: HTMLTooltip show() clear timeout to avoid window leaks;r=jsnajdr
When calling HTMLTooltip::show() consecutively, we were leaking a window object.
The timeout responsible for attaching the click event on window is now cleared
before attaching a new one.

MozReview-Commit-ID: 3ccIHM2QNlp
2016-06-24 16:47:01 +02:00
Julian Descottes df9144d00a Bug 1266456 - part2: HTMLTooltip setContent() use object as 2nd arg;r=jsnajdr
setContent expects 3 arguments: content, width, height. Height is already optional
but for the autocomplete migration, the width will also become optional.

Using an object argument for width and height makes this easier.

MozReview-Commit-ID: 9CiMG0BdLOR
2016-06-23 17:27:32 +02:00
Julian Descottes 92e734731d Bug 1266456 - part1: HTMLTooltip cleanup test & jsdoc for synchronous setContent;r=jsnajdr
MozReview-Commit-ID: Ia3aRmwFawP
2016-06-22 15:18:21 +02:00
Tom Tromey 49a3014680 Bug 1273941 - replace uses of promise.defer in devtools/client/shared; r=jryans
MozReview-Commit-ID: K5P4eB0XPT9
2016-06-09 09:04:22 -06:00
Patrick Brosset 22dfd32737 Bug 1268082 - Get the list of supported CSS types for each property from the server; r=tromey
Added the list of supported types to each css property returned by the
CssProperties actor.
As a fallback, the css-properties-db static file also contains this list.
Also, if connected to a server that has the CssProperties actor but not
the data about supported types, then the type data is retrieved from the
static db too.

MozReview-Commit-ID: J1o8JGODMiC
2016-06-15 08:58:36 +01:00
Julian Descottes 6b4ec8f341 Bug 1279441 - fix HTMLTooltip closing after click on inner iframe;r=bgrins
MozReview-Commit-ID: EggheTpU2y3
2016-06-10 11:24:04 +02:00
J. Ryan Stinnett 169c44d5f6 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05:00
Julian Descottes f5dc74d78e Bug 1266450 - part7: fix html tooltip autofocus behavior;r=bgrins
For autofocus tooltips, we need to find a focusable item in order
to call focus() now that the tooltip content lives in the same
document as the toolbox. Updated the corresponding test and made
some superficial changes to HTMLTooltip.js.

MozReview-Commit-ID: L61eIxgFm3d
2016-06-08 13:32:15 +02:00
Julian Descottes c94e194787 Bug 1266450 - part4: allow tooltips to have a variable height;r=bgrins
With this changeset the tooltip's effective height can be smaller than
the height specified when calling setContent. If the tooltip content is
dynamic, this allows to display a small tooltip frame if the content is
collapsed, and a bigger tooltip frame when it is expanded.

MozReview-Commit-ID: 44vA0Rdz62m
2016-06-03 12:52:59 +02:00
Julian Descottes 6605337e81 Bug 1266450 - part3: fix helper to check if click occurred in tooltip;r=bgrins
The existing helper checking if a click occurred inside or outside a
HTMLTooltip container was failing if the click occurred in an iframe.

MozReview-Commit-ID: 9AIACOukYUF
2016-06-03 12:50:39 +02:00
Julian Descottes ce41dce5f4 Bug 1266450 - part2: remove iframe container for HTML tooltip;r=bgrins
In order to have tooltips with a variable height, the tooltip container
should be allowed to resize itself on the fly, which cannot be achieved
with an iframe.

This changeset makes the HTMLTooltip rely on a HTML container inserted
in the XUL document directly. This allows to go back to a synchronous
API which also simplifies the implementation.

MozReview-Commit-ID: EDcsnVSKmeU
2016-05-30 23:02:58 +02:00
Julian Descottes de9f21ec87 Bug 1266450 - part1: move devtools tooltip styles to dedicated file;r=bgrins
Tooltip styles are scattered between common.css and panel-specific CSS
files (e.g. inspector.css). For the HTML tooltip, the panel specific CSS
files will not be applied since the tooltip container is appended to the
devtools top window.

This changeset creates a new tooltips.css file which is loaded by default
with devtools themes.

MozReview-Commit-ID: BnoRi9gLfD5
2016-06-03 14:36:56 +02:00
Julian Descottes f35ef554de Bug 1270494 - fix autocomplete popup offset for multiple values input;r=pbro
Fixed regression from Bug 1168246 and added a unit test to loosely check that
the autocomplete popup moves along with autocompleted query.

MozReview-Commit-ID: H7t5WjkwBE4
2016-06-06 12:10:13 +02:00
Tom Tromey 1543b8a054 Bug 1277534 - avoid output-parser failure with invalid URL; r=pbro
MozReview-Commit-ID: CK5n8sHgmwD
2016-06-06 08:56:47 -06:00
Julian Descottes 7046ee2670 Bug 1277906 - part2: focus previous active element when hiding HTML Tooltip;r=bgrins
MozReview-Commit-ID: GuiwOlZyyik
2016-06-04 00:40:37 +02:00
Nick Fitzgerald 6783a8670c Bug 1277673 - Decouple the ActorActorFront and ActorRegistryFront from the ActorActor and ActorRegistryActor respectively; r=ejpbruel 2016-06-03 10:45:10 -07:00
Alexandre Poirot cebe930459 Bug 1271988 - Support targeting a specific element on key shortcut module. r=bgrins 2016-06-03 02:24:31 -07:00
Steve Melia f92b128fd4 Bug 1276533: Update test actor to scroll element into view before simulating mouse click;r=ochameau
MozReview-Commit-ID: ElTy62z8tl6
2016-05-31 22:03:58 +01:00
Greg Tatum a8e55a89a4 Bug 1265798 - Implement CSS database to query css properties r=pbro
MozReview-Commit-ID: CAUh2GyeA2o
2016-05-26 08:48:00 -07:00
Julian Descottes 6b7d986d94 Bug 1275081 - Part 2: Add inplace editor tests using mocked CSS property/values suggestions. r=tromey
In order to keep testing indexes & total number of displayed suggestions,
added two tests relying on mocked suggetions list.

The inplace-editor API has been modified to allow mocking the suggestions.

Helper methods in devtools/client/shared/test have been moved to a new
test helper helper_inplace_editor.js, loaded by all inplace-editor
tests of this test suite.

CLOSED TREE

MozReview-Commit-ID: LuXelKF0kY
2016-05-25 23:24:28 +02:00
Patrick Brosset 8c1b03880b Bug 1270186 - Move css-parsing-utils.js from devtools/client to devtools/shared; r=tromey
MozReview-Commit-ID: 75Yq1X4YjjJ
2016-05-23 14:03:12 +02:00
Alexandre Poirot 5f593d11c1 Bug 1268450 - Fix 'Plus' key shortcut support. r=jryans 2016-05-25 08:31:06 -07:00
Alexandre Poirot a959176a25 Bug 1268450 - Accept loose digits for azerty keyboards. r=jryans 2016-05-25 08:31:06 -07:00
Julian Descottes 258d2da4bb Bug 1267401 - part3: Create arrow style for HTML tooltips;r=bgrins
MozReview-Commit-ID: Bp2RylafolP
2016-05-16 17:53:19 +02:00
Julian Descottes 4113eeebb8 Bug 1267401 - part2: include common.css in html tooltip tests;r=bgrins
MozReview-Commit-ID: KyYfOhAv6uo
2016-05-12 12:13:38 +02:00
Julian Descottes acf216e545 Bug 1267401 - part1: Rename HTMLTooltip properties for backward comp with Tooltip;r=bgrins
Rename document -> doc for consistency and parent to panel
for test compatibility.

MozReview-Commit-ID: KHT7plLtNQc
2016-05-23 22:49:21 +02: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