Commit Graph
411 Commits
Author SHA1 Message Date
yulia c7fe6da3a5 Bug 1447487 - remove all uses of GCLI eyedropper; r=ochameau
Summary:
this removes references to GCLI in the inspector front and from the browser menu, leaving
no further uses of gcli eyedropper

Test Plan: mochitests

Reviewers: ochameau

Tags: #secure-revision

Bug #: 1447487

Differential Revision: https://phabricator.services.mozilla.com/D3614
2018-08-17 16:55:01 +02:00
Gurzau Raul 421f1935ed Backed out 3 changesets (bug 1447487, bug 1485374) for failing at browser_ext_devtools_panels_elements_sidebar.js and /mochitest/test_inspector-pick-color.html on a CLOSED TREE
Backed out changeset 82ef44f87f72 (bug 1447487)
Backed out changeset d8a1c6a80a59 (bug 1447487)
Backed out changeset d4761bb0096a (bug 1485374)
2018-08-30 21:31:53 +03:00
yulia 0e8fc89f60 Bug 1447487 - remove all uses of GCLI eyedropper; r=ochameau
Summary:
this removes references to GCLI in the inspector front and from the browser menu, leaving
no further uses of gcli eyedropper

Test Plan: mochitests

Reviewers: ochameau

Tags: #secure-revision

Bug #: 1447487

Differential Revision: https://phabricator.services.mozilla.com/D3614
2018-08-17 16:55:01 +02:00
Mantaroh Yoshinaga c59e960b22 Bug 1472931 - Drop the autofocus feature of HTMLTooltip. r=birtles
This feature is no longer used. So this patch will remove this feature.

Differential Revision: https://phabricator.services.mozilla.com/D4052
2018-08-27 01:35:55 +00:00
Brian Grinstead c8b3483e82 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275
2018-08-14 16:22:44 +00:00
Julian Descottes 02afaa9954 Bug 1349416 - Only delay removeEventListener when hiding after mouseup;r=birtles
The inplace-editor is programmatically hiding the autocomplete-popup
on TAB and notifies the caller. The caller (eg rule view) will trigger
a click on the next focusable element immediately after that.

If the HTMLTooltip is still consuming outside clicks at that point
the click will be swallowed and the new inplace-editor cannot be created.

Depends on D2661

Differential Revision: https://phabricator.services.mozilla.com/D2662
2018-08-03 11:02:45 +00:00
Julian Descottes 5413bfe088 Bug 1349416 - Hide HTMLTooltip on mouseup rather than on click;r=birtles
A click event is only fired if the element on which mousedown and mouseup
happened are the same. If this is not the case, the HTMLTooltip will not
be able to hide itself.

Listening to mouseup makes the behavior more consistent but forces the
hide() method to be always asynchronous, while before it was only
asynchronous for tooltips using the XULWrapper.

Depends on D2660

Differential Revision: https://phabricator.services.mozilla.com/D2661
2018-08-03 11:01:51 +00:00
Bogdan Tara b03e56131c Backed out 3 changesets (bug 1349416) for Dev Tools failures CLOSED TREE
Backed out changeset ec5ee2990e21 (bug 1349416)
Backed out changeset c4f8eccf14dc (bug 1349416)
Backed out changeset b7e80d3a6810 (bug 1349416)
2018-08-03 12:33:32 +03:00
Julian Descottes d81a4c84d3 Bug 1349416 - Only delay removeEventListener when hiding after mouseup;r=birtles
The inplace-editor is programmatically hiding the autocomplete-popup
on TAB and notifies the caller. The caller (eg rule view) will trigger
a click on the next focusable element immediately after that.

If the HTMLTooltip is still consuming outside clicks at that point
the click will be swallowed and the new inplace-editor cannot be created.

Depends on D2661

Differential Revision: https://phabricator.services.mozilla.com/D2662
2018-08-03 07:05:51 +00:00
Julian Descottes f507e8c31b Bug 1349416 - Hide HTMLTooltip on mouseup rather than on click;r=birtles
A click event is only fired if the element on which mousedown and mouseup
happened are the same. If this is not the case, the HTMLTooltip will not
be able to hide itself.

Listening to mouseup makes the behavior more consistent but forces the
hide() method to be always asynchronous, while before it was only
asynchronous for tooltips using the XULWrapper.

Depends on D2660

Differential Revision: https://phabricator.services.mozilla.com/D2661
2018-08-03 07:05:43 +00:00
Dave Townsend 7c2cace29b Bug 1479050: Migrate a number of call-sites to use document.createXULElement. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D2489
2018-07-31 19:13:38 +00:00
Julian Descottes c035502db8 Bug 1479006 - Move old devtools tooltip widget to debugger folder;r=nchevobbe
MozReview-Commit-ID: ATHQoGbcX2b
2018-07-27 16:59:24 +02:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Julian Descottes 7d398985fa Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC
2018-07-18 18:01:29 +02:00
Margareta Eliza Balazs 1dbf998512 Backed out changeset 627f2adec73b (bug 1476647) for causing failures in devtools/client/storage/test/browser_storage_overflow.js 2018-07-19 09:05:35 +03:00
Julian Descottes aeb6c90ed6 Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC
2018-07-18 18:01:29 +02:00
Emma Malysz e37284b753 Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102
MozReview-Commit-ID: LBQ0RoS0ZVc
2018-06-25 10:11:31 -07:00
Bogdan Tara f309a9ced1 Backed out changeset b099e7e0b264 (bug 1454358) for build bustages on Element.h CLOSED TREE 2018-07-12 01:50:53 +03:00
Emma Malysz daa1500e80 Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102
MozReview-Commit-ID: LBQ0RoS0ZVc
2018-06-25 10:11:31 -07:00
Brian Birtles 8e130c4211 Bug 1461522 - Add a mechanism to allow updating an HTMLTooltip's size and position; r=jdescottes
MozReview-Commit-ID: 4SDxlTTFp8E
2018-06-28 15:13:05 +09:00
Brian Birtles a7944f6a04 Bug 1461522 - Honor ui.popup.disable_autohide setting in HTMLTooltip; r=jdescottes
MozReview-Commit-ID: ReYYKPYaVm
2018-06-28 15:13:05 +09:00
Brian Birtles d9b05e9f46 Bug 1461522 - Add ID and class properties to HTMLTooltip; r=jdescottes
In particular, the ID allows us to associate the tooltip with the button that
triggers it using the aria-controls attribute.

MozReview-Commit-ID: ArjH2s5JNlC
2018-06-28 15:13:05 +09:00
Brian Birtles b70afbc6cb Bug 1461522 - Add focus() and focusEnd() methods to HTMLTooltip; r=jdescottes
We will use these methods later when we put menu content inside HTMLTooltip in
order to set the initial focus.

MozReview-Commit-ID: HR02wg543gP
2018-06-28 15:10:42 +09:00
Brian Birtles 5f831ad41b Bug 1461522 - Factor out a focusableSelector utility; r=jdescottes
We will use this later when we introduce a MenuList class since it will want to
manage focus for its menu items.

This patch also extends the definition of focusable elements somewhat.

MozReview-Commit-ID: 3shnC0t79rF
2018-06-28 15:10:27 +09:00
Brian Birtles 4c18f72eed Bug 1461522 - Add doorhanger type to HTMLTooltip; r=jdescottes
MozReview-Commit-ID: 6Oq9qauwngX
2018-06-28 15:04:13 +09:00
Brian Birtles 5d4d25e90b Bug 1461522 - Allow { height: "auto" } in HTMLTooltip setContent and make it the default; r=jdescottes
The current default value for height of Infinity has the unfortunate side
effect that, when combined with using a XUL wrapper, there will be a large
filler element stretching vertically on one side of the tooltip that effectively
neuters all content beneath it. While this is probably fine for tooltips that
are shown on hover, it is problematic if we want to use this for DevTools menus
because it means the user is unable to click anything above/below the menu so
long as it is open (which can be particularly problematic once we make
HTMLTooltip support the "Disable popup autohide" feature"). Even if we were to
decide that clicks outside the tooltip should be consumed anyway we would still
have the problem that hover styles don't apply in this "dead" region.

As a result, this patch makes the { height: Infinity } behaviour opt-in for
those tooltips that really need it. For most uses, however, a height calculated
when the tooltip is shown should be sufficient (and later in this patch series
we will add a mechanism to HTMLTooltip to explicitly request it recalculate its
size and position in response to content changes).

This patch introduces the { height: "auto" } mechanism and also reverses the
order in which size/position properties are calculated to match the regular
manner in which layout is performed: widths first, then heights.

MozReview-Commit-ID: 7BeVkxGVhYn
2018-06-28 15:03:57 +09:00
Brian Birtles f4f8b0b9fd Bug 1461522 - Fix some comments in HTMLTooltip.js; r=jdescottes
MozReview-Commit-ID: F01ofl9u5lR
2018-06-28 14:56:30 +09:00
Brian Birtles c944837eb9 Bug 1461522 - Use the currentZoom as opposed to the pref value; r=jdescottes
In a couple of places in DevTools we read back the value of the
"devtools.toolbox.zoomValue" pref and take that to be the zoom value. However,
at certain zoom levels these two can differ: the pref value representing the
ideal zoom and currentZoom giving the actual zoom value in use.

This patch makes us use the actual zoom value in the two places where this
occurs.

Unfortunately, we cannot easily adjust the browser_html_tooltip_zoom.js test for
this since it uses a separate XUL document that does not take into account the
pref value---as a result that test directly sets the currentZoom on the separate
doc and hence this problem won't occur.

Instead, this patch adjusts the browser_toolbox_zoom_popup.js test since the
toolbox menu positioning uses the same problematic pattern so we can reproduce
the bug in the browser_toolbox_zoom_popup.js. (This patch fixes both
occurances of this pattern.)

At least locally browser_toolbox_zoom_popup.js passes for me with a zoom of 1.5
but fails with a zoom of 1.4. Similarly in my testing of HTMLTooltip, zoom
values such as 1.2 and 1.4 often show significant misalignment whilst a zoom of
1.3 or 1.5 is fine.

With the code changes in this patch, the test passes with any given zoom factor.

(This patch also incidentally replaced isNaN with the more robust Number.isNaN.)

MozReview-Commit-ID: JmlRoidARVp
2018-06-28 14:55:48 +09:00
Brian Birtles baf1fba99e Bug 1461522 - Make HTMLTooltip position the arrow correctly in RTL mode; r=jdescottes
Currently the arrow offset is not correctly positioned in RTL mode as evidenced
by the test case included in this patch (which fails without the code changes
included in this patch).

This patch logicalizes the calculations for positioning the tooltip which fixes
this and other issues when using RTL mode and will make it easier to introduce
a new "doorhanger" type tooltip later in this patch series.

MozReview-Commit-ID: BQXhDHbPTbl
2018-06-28 14:52:10 +09:00
Razvan Caliman c209068881 Bug 1454317 - Reference correct shape swatch element after editing value in rule view. r=gl
MozReview-Commit-ID: LwF3XsE6yEs
2018-06-18 20:11:05 +02:00
Blake Kaplan bd5cecf60f Bug 1186265 - Move devtools over to getBounds(). r=pbro
This leaves getAdjustedQuads alone because it lives in its own world and its
result gets sent over IPC. That leaves things in a bit of an intermediate
state, but that should be OK for now.

MozReview-Commit-ID: DH6eGqCFhPr
2018-06-04 16:41:43 -07:00
Markus Stange c75d5069d8 Bug 1462784 - Update the devtools performance panel for the new category list. r=gregtatum
MozReview-Commit-ID: HwRFEfgA4L
2018-05-23 23:11:41 -04:00
Csoregi Natalia 27ccec9c4c Backed out 18 changesets (bug 1462784) for ESlint failure on FlameGraph.js:1297. CLOSED TREE
Backed out changeset 79556798ff9f (bug 1462784)
Backed out changeset 88321efb673b (bug 1462784)
Backed out changeset 7880f9dc7023 (bug 1462784)
Backed out changeset 71fe35fd1f7e (bug 1462784)
Backed out changeset a543b94b049a (bug 1462784)
Backed out changeset d1ca8b0f2221 (bug 1462784)
Backed out changeset 68eabfbf3c16 (bug 1462784)
Backed out changeset 34e71c789903 (bug 1462784)
Backed out changeset 6fe79d1ca1bd (bug 1462784)
Backed out changeset e5ad2e525ea9 (bug 1462784)
Backed out changeset 329645ff1e23 (bug 1462784)
Backed out changeset e09c38853172 (bug 1462784)
Backed out changeset 0663d1a6d2da (bug 1462784)
Backed out changeset 106967fc29d2 (bug 1462784)
Backed out changeset 99b4a433a8e5 (bug 1462784)
Backed out changeset 1d38a4cf5a4a (bug 1462784)
Backed out changeset 692017229de6 (bug 1462784)
Backed out changeset c2911a626671 (bug 1462784)
2018-06-01 23:42:00 +03:00
Markus Stange dd8f85c69f Bug 1462784 - Update the devtools performance panel for the new category list. r=gregtatum
MozReview-Commit-ID: HwRFEfgA4L
2018-05-23 23:11:41 -04:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Noemi Erli 3946d17555 Backed out 18 changesets (bug 1462784) for failures in devtools/client/performance/test/unit/test_tree-model-08.js on a CLOSED TREE
Backed out changeset a74d36598442 (bug 1462784)
Backed out changeset c8192175f360 (bug 1462784)
Backed out changeset cde492240e99 (bug 1462784)
Backed out changeset 8c8d30fa406c (bug 1462784)
Backed out changeset ad3802ffb780 (bug 1462784)
Backed out changeset 2fe10732076c (bug 1462784)
Backed out changeset 268a72b7c3c4 (bug 1462784)
Backed out changeset 4055eb6c3bc6 (bug 1462784)
Backed out changeset 3901070e2e60 (bug 1462784)
Backed out changeset 2faf787fbbdf (bug 1462784)
Backed out changeset 8f06963c7c6f (bug 1462784)
Backed out changeset 036e6f64e224 (bug 1462784)
Backed out changeset e670f156a603 (bug 1462784)
Backed out changeset cd39588aece4 (bug 1462784)
Backed out changeset 2ac65d100fa2 (bug 1462784)
Backed out changeset ea05ff70a51d (bug 1462784)
Backed out changeset 8a06c0ba42f7 (bug 1462784)
Backed out changeset 52ed9a039ad2 (bug 1462784)
2018-06-01 01:06:29 +03:00
Markus Stange 6557a3a524 Bug 1462784 - Update the devtools performance panel for the new category list. r=gregtatum
MozReview-Commit-ID: HwRFEfgA4L
2018-05-23 23:11:41 -04:00
Boris Zbarsky 8a166e6246 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
Michael Ratcliffe 84b2422f95 Bug 1458206 - telemetry.js: Cleanup toolOpened/toolClosed r=jdescottes
The methods have been improved and now live in telemetry.js again.

We use these methods for tools that at least require timing.

MozReview-Commit-ID: 2CqBCA9j3XU
2018-05-04 18:00:04 +01:00
Mantaroh Yoshinaga 2071efa4f3 Bug 1460795 - HTML tooltips should consider the content zoom value. r=jdescottes
This patch will multiply the HTML tooltip position to the zoom value in order to
display HTML tooltip in correct position.

MozReview-Commit-ID: GHVkB5hN44k
2018-05-17 09:52:38 +09:00
Mike Ratcliffe 183dbdcc6b Bug 1454103 - Correct display of local and sessionStorage in DevTools r=nchevobbe
Take into account node offsets in browser_webconsole_object_inspector_local_session_storage.js.

MozReview-Commit-ID: 73waFejjsF0
2018-04-14 00:29:59 +01:00
Michael Ratcliffe 66b91c9ff6 Bug 1433844 - Storage inspector throws when add item, reload and arrow keys r=pbro
As far as I am aware, we can't create tests to detect whether an error has been thrown... especially if the error has no side affects.

If we really need a test for these simple four fixes you can always insist but I don't think we do.

MozReview-Commit-ID: 7j9N1X4jTHY
2018-04-26 15:56:20 +01:00
Kris Maglione b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Brian Grinstead 2431fcbd10 Bug 1456616 - Remove suppressFocusScroll from nsXULCommandDispatcher;r=bz
This attribute doesn't do anything.

MozReview-Commit-ID: FnshlyyAms5
2018-04-24 13:22:12 -07:00
Boris Zbarsky 30658b874a Bug 1452183 part 2. Stop using nsIDOMDocumentFragment in JS. r=mccr8 2018-04-17 21:13:03 -04:00
Gurzau Raul 3501ab0447 Merge inbound to mozilla-central. a=merge 2018-04-10 19:54:34 +03:00
Razvan Caliman 794d47794b Bug 1435373 - Shapes editor: implementation to map shape value changes to rule. r=pbro
MozReview-Commit-ID: i20YChYAxd
2018-04-10 13:59:00 +02:00
Patrick Brosset d20eb510e9 Bug 1446316 - Removing the unused and broken new colorPicker widget; r=gl
MozReview-Commit-ID: 93vY0NjL1pK
2018-04-05 22:29:48 +02:00
Julian Descottes 00231e7711 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
2018-03-05 14:15:57 +01:00