Граф коммитов

3571 Коммитов

Автор SHA1 Сообщение Дата
imoraru 97edf7f91e Backed out changeset 30af8f80e275 (bug 1705927)for causing failures at test_group_hittest-2.html. CLOSED TREE 2021-04-20 12:03:21 +03:00
Timothy Nikkel 2623b0405a Bug 1706213. Protect AsyncPanZoomController::mZoomConstraints by mutex. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112682
2021-04-20 02:36:30 +00:00
Botond Ballo d229ecb8e4 Bug 1705927 - Make GenericOverscrollEffect a no-op if prefers-reduced-motion is set. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D112660
2021-04-20 01:50:53 +00:00
Kartikaya Gupta 570147386a Bug 1662379 - Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112501
2021-04-19 22:02:03 +00:00
Kartikaya Gupta 8a17781edb Bug 1662379 - Listen for events in bubble phase rather than capture phase. r=botond
The events being listened for here are mouse events, all of which
go through both the bubble and capture phases. It's not clear to
me why I originally added this listener in the capture phase; it
is more useful in the bubble phase because then it resolves the
promise after the event has triggered listeners registered on the
target element, rather than before.

Note also that prior to the promis-ification of this function, the
callback was called inside a setTimeout(0) wrapper, which would
automatically have deferred the callback to after the event dispatch
was completed. So technically the promis-ification of this function
introduced a functional change because now the promise can get
resolved before the event dispatch is complete, and in particular,
before listeners on the target element get run. This didn't affect
anything in practice because none of the existing callers actually
have such a listener on the target element. The next patch adds
one though, and exposed this behaviour difference when I rebased it
across the promis-ification change..

This patch removes the capture:true listener option, causing the
listener to get registered in the bubble phase.

Differential Revision: https://phabricator.services.mozilla.com/D112500
2021-04-19 22:02:02 +00:00
Timothy Nikkel 4d503ab136 Bug 1705622. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112352
2021-04-19 15:57:04 +00:00
Timothy Nikkel fbcd0e7d0e Bug 1705622. Update zoom constraints on apzc's every time we update the hit testing tree. r=botond
An apzc could have moved to inside an async zoom container.

In the failing test we did a paint while painting was suppressed, so our display list had exactly one item: a nsDisplaySolidColor. The layer tree still got tagged with metrics and so the apzc was attached. Then the zoom constraints client does it's before first paint update which is triggered when we unsuppress painting. It finds no async zoom container so it does nothing. Then we do a regular paint, with an async zoom container this time. We find the apzc from the previous paint, so we don't update the zoom contraints.

Differential Revision: https://phabricator.services.mozilla.com/D112555
2021-04-19 15:57:04 +00:00
Timothy Nikkel aee276e715 Bug 1705622. When building the hit testing tree use async zoom containers to keep track of which zoom constraints to apply. r=botond
This also fixes a bug where root content xul docs had zoom constraints that allowed them to be zoomed. This would cause a crash because we would ask for a repaint request and it would get routed to APZCCallbackHelper::UpdateRootFrame (because it has the id of the document element), which assumes the existance of a root scroll frame.

Differential Revision: https://phabricator.services.mozilla.com/D112486
2021-04-19 15:57:03 +00:00
Timothy Nikkel 4dca84b420 Bug 1705622. When we get new zoom constraints look for the associated async zoom container and propagate them to all descendants. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112485
2021-04-19 15:57:03 +00:00
Timothy Nikkel 4a3d9a0e9c Bug 1705622. Make sure the async zoom container id gets passed all the way through to the HitTestingTreeNode. r=botond
Also rename IsAsyncZoomContainer to GetAsyncZoomContainerId, since it returns a maybe this serves both purposes.

We need this for the next patches.

Differential Revision: https://phabricator.services.mozilla.com/D112484
2021-04-19 15:57:03 +00:00
Cosmin Sabou 62670a3baf Backed out changeset 3b729f0fb230 (bug 1705826) for reftest failures on skip-ink-multiline-position.html. 2021-04-19 13:36:30 +03:00
smolnar 46a67b8656 Backed out 4 changesets (bug 1705622) for causing dt failures in browser_touch_simulation.js CLOSED TREE
Backed out changeset 44277989aa32 (bug 1705622)
Backed out changeset 5a374b87bffb (bug 1705622)
Backed out changeset 8eab73ad3b4b (bug 1705622)
Backed out changeset dfcbcfbe0e47 (bug 1705622)
2021-04-19 10:21:09 +03:00
Timothy Nikkel 3ba349dc36 Bug 1705622. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112352
2021-04-19 01:14:10 +00:00
Timothy Nikkel a3e7cf4e01 Bug 1705622. When building the hit testing tree use async zoom containers to keep track of which zoom constraints to apply. r=botond
This also fixes a bug where root content xul docs had zoom constraints that allowed them to be zoomed. This would cause a crash because we would ask for a repaint request and it would get routed to APZCCallbackHelper::UpdateRootFrame (because it has the id of the document element), which assumes the existance of a root scroll frame.

Differential Revision: https://phabricator.services.mozilla.com/D112486
2021-04-19 01:14:10 +00:00
Timothy Nikkel 524d771d22 Bug 1705622. When we get new zoom constraints look for the associated async zoom container and propagate them to all descendants. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112485
2021-04-19 01:14:09 +00:00
Timothy Nikkel ffe0958b33 Bug 1705622. Make sure the async zoom container id gets passed all the way through to the HitTestingTreeNode. r=botond
Also rename IsAsyncZoomContainer to GetAsyncZoomContainerId, since it returns a maybe this serves both purposes.

We need this for the next patches.

Differential Revision: https://phabricator.services.mozilla.com/D112484
2021-04-19 01:14:09 +00:00
Timothy Nikkel 9d2744b7ec Bug 1705624. Change the APZCTreeManager zoom constraints map hash to be presshellid ignoring. r=botond
This is not strictly necessary (but a later patch would need to be modified slightly to get the presshellid).

But we can potentially pull zoom constraints from the apzc map, which is presshellid ignoring, so it seems better to have them in-sync, and I couldn't find a reason why zoom constraints needs to be presshellid respecting.

Depends on D112315

Differential Revision: https://phabricator.services.mozilla.com/D112316
2021-04-18 22:03:30 +00:00
Timothy Nikkel c25f8487c7 Bug 1705279. Move test coords slightly in gfx/layers/apz/test/mochitest/helper_checkerboard_zoomoverflowhidden.html to avoid overscroll gutter. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112459
2021-04-17 00:34:22 +00:00
Botond Ballo 713db94540 Bug 1705826 - Apply the overscroll transform to content fixed to the root (non-WebRender). r=tnikkel
This is accomplished by the overscroll transform being part of the visual
component of the root content APZC's async transform.

We were already doing this right in AsyncPanZoomController (as of bug
1699868), but the call sites in AsyncCompositionManager needed to be
updated.

Differential Revision: https://phabricator.services.mozilla.com/D112221
2021-04-16 20:55:03 +00:00
Brad Werth c15bff89f5 Bug 1675375 Part 7: Update expectations in helper_hittest_clippath.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111217
2021-04-15 18:54:40 +00:00
Brad Werth cd682d50b7 Bug 1675375 Part 6: Break test_group_hittest.html into parts. r=botond
This test fails in automation, but those failures are difficult to reproduce
in local builds. When attempting to reproduce locally, the whole test sometimes
times out. Isolating specific subtests seems to affect the test outcomes as
well. Splitting the test into pieces seems to be the best way to make failures
in this test more actionable.

Differential Revision: https://phabricator.services.mozilla.com/D111167
2021-04-15 18:54:39 +00:00
Brad Werth 13ae62fae3 Bug 1675375 Part 5: Add a polygon clip test for Fission WebRender. r=gw
This test was originally written by Kats, but I can't figure out how to
preserve authorship.

Differential Revision: https://phabricator.services.mozilla.com/D109947
2021-04-15 18:54:39 +00:00
Hiroyuki Ikezoe 6c5cdcc0c1 Bug 1700215 - Make OverscrollAnimation coexist with momentum scrolling in the other axis. r=botond
This change makes us match Chrome's overscroll behavior (i.e. restoring
overscroll state on an axis while scrolling by pan momentum keeps going on the
other axis).

Basic mechanisms to do the behavior are;

a) if there is an on-going overscroll animation on an axis and the overscroll
   direction is opposed to the momentum direction, stop the overscroll animation
   immediately and keep the momentum scroll (or overscroll and scroll if the
   current position is in overscroll gutter).
b) if there is an on-going overscroll animation on an axis and the overscroll
   direction is same as the momentum direction, drop the momentum and keep
   the animation overscrolling.
c) if there is an on-going overscroll animation on an axis and no overscroll
   animation on the other axis and if a pan momentum event overscrolls on
   the other axis,  start a new overscroll animation on the axis.

With this change there still remains a (relatively) less noticeable issue that
pan momentum scrolling on an axis stops immediately after the other axis
overscroll animation stopped.  For example, given that there is a horizontal
overscroll animation and vertical pan momentums keep going, subsequent vertical
pan moments after the horizontal overscroll animation finished will be discarded
since we do set the APZC state to NOTHING in
AsyncPanZoomController::UpdateAnimation(). To fix this issue we need to handle
OVERSCROLL_ANIMATION separately from the others, in the example case, once after
the overscroll animation finished, the state should be MOMENTUMPAN, thus we can
keep consuming momentum events as scroll. That said, the fix will not be easy,
because there are also cumbersome cases where we don't want to keep consuming
the events, one of the cases is b) in the basic mechanisms above, in the case
we do want to discard incoming momentum events after the overscroll animation
finished if the incoming momentum events are in the initial overscroll gutter,
IF the incoming momentum events are in the another edge of the overscroll
gutter, we have to re-initiate a new overscroll animation in the other side
gutter. We will handle these cases in a followup bug (bug 1702949).

Differential Revision: https://phabricator.services.mozilla.com/D110794
2021-04-14 23:29:38 +00:00
Hiroyuki Ikezoe a41405e106 Bug 1700215 - Generate OverscrollAnimation only if it's overscrolled on the axis. r=botond
This is a prerequisite change to keep momentum scrolls happening on the other
axis where no overscroll animation is running.

Differential Revision: https://phabricator.services.mozilla.com/D110793
2021-04-14 23:29:37 +00:00
Hiroyuki Ikezoe a1a4fe1d55 Bug 1700215 - Introduce FingersOnTouchpad enum to represent whether fingers are still on touchpad. r=botond
Boolean literals in call sites make it hard to tell what the value means.

Differential Revision: https://phabricator.services.mozilla.com/D110792
2021-04-14 23:29:37 +00:00
Hiroyuki Ikezoe bba2ef92d0 Bug 1700215 - Factorout GetDisplacementsForPanGesture. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D110791
2021-04-14 23:29:36 +00:00
Emilio Cobos Álvarez de258a4e58 Bug 1699844 - Make promiseDocumentFlushed handle presshell destruction correctly. r=smaug,botond
By resolving the relevant promises, instead of crashing (and if we
didn't crash we'd leave the window registered as a refresh driver
observer, which would be bad).

I wanted to reject them, since that's what we do when the page has no
pres shell, but that'd make this test fail:

   https://searchfox.org/mozilla-central/rev/d8194cbbeaec11962ed67f83aea9984bf38f7c63/dom/base/test/browser_promiseDocumentFlushed.js#165-186

For this, we modify the OneShotPostRefreshObserver API to be more
generic (and rename it OneShotManagedRefreshObserver).

We fix APZ's usage of this API, which was doing something extremely
weird (returning a refcounted object in a UniquePtr). This seems like an
artifact from recent OneShotPostRefreshObserver cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D111851
2021-04-14 19:34:23 +00:00
Dorel Luca f41135212c Backed out 7 changesets (bug 1675375) for Mochitest failures in gfx/layers/apz/test/mochitest/test_group_hittest-2.html. CLOSED TREE
Backed out changeset 1a2cb51e0573 (bug 1675375)
Backed out changeset e1ec44a75cd0 (bug 1675375)
Backed out changeset a628a5fa5291 (bug 1675375)
Backed out changeset 5fbf7f44c382 (bug 1675375)
Backed out changeset 053073e36e53 (bug 1675375)
Backed out changeset ae13d5fc65ba (bug 1675375)
Backed out changeset 1a8ae9663eb0 (bug 1675375)
2021-04-14 21:38:20 +03:00
Brad Werth 85b13c9427 Bug 1675375 Part 7: Update expectations in helper_hittest_clippath.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111217
2021-04-14 17:17:17 +00:00
Brad Werth 41e36e1b64 Bug 1675375 Part 6: Break test_group_hittest.html into parts. r=botond
This test fails in automation, but those failures are difficult to reproduce
in local builds. When attempting to reproduce locally, the whole test sometimes
times out. Isolating specific subtests seems to affect the test outcomes as
well. Splitting the test into pieces seems to be the best way to make failures
in this test more actionable.

Differential Revision: https://phabricator.services.mozilla.com/D111167
2021-04-14 17:17:16 +00:00
Brad Werth 258ab31814 Bug 1675375 Part 5: Add a polygon clip test for Fission WebRender. r=gw
This test was originally written by Kats, but I can't figure out how to
preserve authorship.

Differential Revision: https://phabricator.services.mozilla.com/D109947
2021-04-14 17:17:16 +00:00
Botond Ballo a28d37ab0e Bug 1704070 - Add a test for contextmenu event dispatch in the overscroll gutter. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111761
2021-04-14 05:07:56 +00:00
Alexandru Michis c592078f73 Backed out 7 changesets (bug 1675375) for causing mochitest plain failures in test_group_hittest-2.html
CLOSED TREE

Backed out changeset e2e27cedd002 (bug 1675375)
Backed out changeset dba2861e4b53 (bug 1675375)
Backed out changeset 5dbfc7ce0a85 (bug 1675375)
Backed out changeset dd08dfba1dcd (bug 1675375)
Backed out changeset 5f8ae081f4ee (bug 1675375)
Backed out changeset 4d13e1221a79 (bug 1675375)
Backed out changeset 0e463f7857ea (bug 1675375)
2021-04-14 07:29:47 +03:00
Brad Werth a44631d43e Bug 1675375 Part 7: Update expectations in helper_hittest_clippath.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111217
2021-04-14 03:17:42 +00:00
Brad Werth 42ff614cbd Bug 1675375 Part 6: Break test_group_hittest.html into parts. r=botond
This test fails in automation, but those failures are difficult to reproduce
in local builds. When attempting to reproduce locally, the whole test sometimes
times out. Isolating specific subtests seems to affect the test outcomes as
well. Splitting the test into pieces seems to be the best way to make failures
in this test more actionable.

Differential Revision: https://phabricator.services.mozilla.com/D111167
2021-04-14 03:17:42 +00:00
Brad Werth 1c0f783fc7 Bug 1675375 Part 5: Add a polygon clip test for Fission WebRender. r=gw
This test was originally written by Kats, but I can't figure out how to
preserve authorship.

Differential Revision: https://phabricator.services.mozilla.com/D109947
2021-04-14 03:17:41 +00:00
Alexandru Michis 97e8263ebb Backed out 7 changesets (bug 1675375) for causing webrender lint tidy failures.
CLOSED TREE

Backed out changeset 153063d9a02a (bug 1675375)
Backed out changeset c8ef6d2e370b (bug 1675375)
Backed out changeset 7085c1fa22a7 (bug 1675375)
Backed out changeset 842bc646804b (bug 1675375)
Backed out changeset 13d98397d39a (bug 1675375)
Backed out changeset d29bc0506ced (bug 1675375)
Backed out changeset 5b83b96c3057 (bug 1675375)
2021-04-14 02:21:41 +03:00
Brad Werth 5bee9526b3 Bug 1675375 Part 7: Update expectations in helper_hittest_clippath.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111217
2021-04-13 19:42:38 +00:00
Brad Werth 6ba434192d Bug 1675375 Part 6: Break test_group_hittest.html into parts. r=botond
This test fails in automation, but those failures are difficult to reproduce
in local builds. When attempting to reproduce locally, the whole test sometimes
times out. Isolating specific subtests seems to affect the test outcomes as
well. Splitting the test into pieces seems to be the best way to make failures
in this test more actionable.

Differential Revision: https://phabricator.services.mozilla.com/D111167
2021-04-13 19:42:37 +00:00
Brad Werth 28be2025ca Bug 1675375 Part 5: Add a polygon clip test for Fission WebRender. r=gw
This test was originally written by Kats, but I can't figure out how to
preserve authorship.

Differential Revision: https://phabricator.services.mozilla.com/D109947
2021-04-13 19:42:37 +00:00
Timothy Nikkel 56bb178351 Bug 1702467. Double tap zoom can make us zoom to a part of an element when we could fit the entire element at the same zoom. r=botond
If we double tap on an element that is narrower than the viewport at maximum we can get into a situation where we zoom on part (say the bottom half) of that element but we could easily fit the entire element.

This happens because the code that calculate the rect to zoom to (CalculateRectToZoomTo) doesn't know about the maximum zoom. So it proceeds as though we will fit the width of the element. Under that assumption we will have to cut off part of the element vertically, so the code centers the rect on the users tap point.

This ends up cutting off part of the element vertically when it is clear that the whole element can fit on screen, which is a pretty ugly result.

This is not my favourite patch. This seemed to make the most sense. Another option I considered was passing the tap point through to AsyncPanZoomController::ZoomToRect but I think this approach came out better: the calculation all happens in one place at one time.

Differential Revision: https://phabricator.services.mozilla.com/D110538
2021-04-13 10:41:51 +00:00
Timothy Nikkel 1311420452 Bug 1704338. Include a couple more tests that I forgot to include in the refactor.
Differential Revision: https://phabricator.services.mozilla.com/D111789
2021-04-13 09:01:53 +00:00
Noemi Erli 0ba7033c5a Bug 1704338 - Fix lint failures r=fix CLOSED TREE 2021-04-13 11:04:37 +03:00
Timothy Nikkel 94b540be7f Bug 1704338. Use promiseApzFlushedRepaints instead of promiseOnlyApzControllerFlushed in doubleTapOn. r=botond
No reason to only wait for the controller, I think we want to wait for the full repaint. Seems to make things less intermittent, the test in bug 1702464 was already using this.

Differential Revision: https://phabricator.services.mozilla.com/D111554
2021-04-13 07:32:24 +00:00
Timothy Nikkel 50f199ab6f Bug 1704338. Factor out doubleTapOn test function. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111553
2021-04-13 07:32:24 +00:00
Timothy Nikkel 4c02c4a43a Bug 1704338. Merge helper_touchscreen_doubletap_zoom.html and helper_touchpad_doubletap_zoom.html. r=botond
The new format lets us use the same test file with a different arg to test both kinds.

Differential Revision: https://phabricator.services.mozilla.com/D111552
2021-04-13 07:32:23 +00:00
Hiroyuki Ikezoe 7ad0d4cc34 Bug 1703762 - Delegate StartAsyncAutoscroll and StopAsyncAutoscroll calls to the proper widget mPopupContentView. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111575
2021-04-12 23:05:40 +00:00
Butkovits Atila 52896afc37 Backed out 7 changesets (bug 1675375) for causing build bustages. CLOSED TREE
Backed out changeset 4cf2b6a19950 (bug 1675375)
Backed out changeset 119c1be7430c (bug 1675375)
Backed out changeset d96860372ec5 (bug 1675375)
Backed out changeset 319a7979be09 (bug 1675375)
Backed out changeset 1cd395b58b92 (bug 1675375)
Backed out changeset c542d63b4dd8 (bug 1675375)
Backed out changeset 4d8b6d3a5f02 (bug 1675375)
2021-04-12 22:23:18 +03:00
Brad Werth fef77e99b1 WIP: Bug 1675375 Part 7: Update expectations in helper_hittest_clippath.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111217
2021-04-12 18:30:55 +00:00
Brad Werth 22a30d4bdc WIP: Bug 1675375 Part 6: Break test_group_hittest.html into parts. r=botond
This test fails in automation, but those failures are difficult to reproduce
in local builds. When attempting to reproduce locally, the whole test sometimes
times out. Isolating specific subtests seems to affect the test outcomes as
well. Splitting the test into pieces seems to be the best way to make failures
in this test more actionable.

Differential Revision: https://phabricator.services.mozilla.com/D111167
2021-04-12 18:30:55 +00:00
Brad Werth 7b0c92f8f7 WIP: Bug 1675375 Part 5: Add a polygon clip test for Fission WebRender. r=gw
This test was originally written by Kats, but I can't figure out how to
preserve authorship.

Differential Revision: https://phabricator.services.mozilla.com/D109947
2021-04-12 18:30:55 +00:00
Timothy Nikkel ddd6cffdc0 Bug 1701749. When computing the double tap rect if there is a overflow rect that contains the bounding client rect use that. r=emilio
I'm not sure if this is better overall or not, it's better for the testcase in this bug (a div with a large amount of visible overflow).

This code is a direct port of javascript code, so it only had the option of using getBoundingClientRect.

Differential Revision: https://phabricator.services.mozilla.com/D110534
2021-04-12 07:45:08 +00:00
smolnar f9c528b63b Backed out changeset e0df81346b2b (bug 1701749) for causing build bustages. CLOSED TREE 2021-04-12 10:39:01 +03:00
Timothy Nikkel 333191777b Bug 1701749. When computing the double tap rect if there is a overflow rect that contains the bounding client rect use that. r=emilio
I'm not sure if this is better overall or not, it's better for the testcase in this bug (a div with a large amount of visible overflow).

This code is a direct port of javascript code, so it only had the option of using getBoundingClientRect.

Differential Revision: https://phabricator.services.mozilla.com/D110534
2021-04-12 07:19:23 +00:00
Timothy Nikkel 8c0bee4f1d Bug 1699180. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111529
2021-04-11 04:45:19 +00:00
Timothy Nikkel a0dd7cb8c0 Bug 1699180. Don't try to double tap zoom to html elements. r=botond
It'll end up scrolling to the top.

Differential Revision: https://phabricator.services.mozilla.com/D110535
2021-04-11 04:45:19 +00:00
Timothy Nikkel 6c016c50fe Bug 1702464. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111401
2021-04-10 06:33:34 +00:00
Timothy Nikkel 0951522aa2 Bug 1702464. Convert the double tap point from visual to layout coords in CalculateRectToZoomTo. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D110537
2021-04-10 06:33:33 +00:00
Timothy Nikkel 36fb86825a Bug 1703497. Fix offset of synthesized double tap gestures on macos. r=botond
The point is in screen pixels but it is relative to the window.

Differential Revision: https://phabricator.services.mozilla.com/D111071
2021-04-09 12:16:08 +00:00
smolnar 39d4b3fc1e Backed out changeset 766c31839315 (bug 1703497) for causing mochitest failures in test_group_double_tap_zoom. CLOSED TREE 2021-04-09 15:05:43 +03:00
Timothy Nikkel e7018a5fea Bug 1703497. Fix offset of synthesized double tap gestures on macos. r=botond
The point is in screen pixels but it is relative to the window.

Differential Revision: https://phabricator.services.mozilla.com/D111071
2021-04-09 11:23:28 +00:00
Timothy Nikkel 6fcb1a96eb Bug 1701597. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D111087
2021-04-08 06:51:40 +00:00
Timothy Nikkel 8a3c4a2200 Bug 1701597.When zooming to a rect horizontally center it. r=botond
We already vertically center the rect, but not horizontally. We generally try to zoom to the width of an element already, so the width of the zoom to rect will usually occupy the whole viewport and hence be centered. But if the width of the element is too small so that we can't zoom in so that it fills the viewport it will end up left aligned. This doesn't come up very often on mobile, but happens more so on desktop.

Differential Revision: https://phabricator.services.mozilla.com/D110063
2021-04-08 06:51:39 +00:00
Mark Striemer 2dcbcaf940 Bug 1703649 - Force gfx/layers/apz/test/mochitest/test_group_zoom-2.html to not use proton r=mconley CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D111151
2021-04-07 19:12:37 +00:00
Timothy Nikkel 4b805b35f8 Bug 1700375. Add test. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111086
2021-04-07 11:38:42 +00:00
Timothy Nikkel df3d156e41 Bug 1700375. Treat replaced elements as non-inline for the purposes of determining which element to zoom to for double tap to zoom. r=emilio
The specific case that motivated this was text areas, but in bug 1700535 we changed those to inline block to match all other input elements and other browsers.

Bug 1539469 changed all inputs to inline-block based on the spec discussion https://github.com/whatwg/html/issues/4082 but textarea's were not part of that.

<img> elements remain as inline though, and we probably do want to zoom to them (and they are replaced), so this change is still desirable.

Differential Revision: https://phabricator.services.mozilla.com/D109574
2021-04-07 11:38:41 +00:00
Edgar Chen 20e4184d91 Bug 1677334 - Part 1: Don't generate click event for mouse-left-down with ctrl key is pressed on Mac; r=masayuki
Chrome and Safari doesn't genereate click event when contorl key is pressed, either.

Differential Revision: https://phabricator.services.mozilla.com/D109903
2021-04-07 11:23:45 +00:00
Markus Stange 23b39e4a0f Bug 1702978 - Add prefs for some of the overscroll physics aspects. r=botond
Depends on D110843

Differential Revision: https://phabricator.services.mozilla.com/D110844
2021-04-06 15:50:09 +00:00
Markus Stange 9361d6f10d Bug 1702978 - Add more overscroll logging. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D110843
2021-04-06 15:50:09 +00:00
Timothy Nikkel 4eaa5cae8d Bug 1702462. Remove some useless double tap to zoom code in CalculateRectToZoomTo. r=botond
The code as is doesn't make sense, comparing the height of the unrounded rect to the rounded rect is not a useful thing to do here. To understand we need to look at the history of this code.

Introduced in https://hg.mozilla.org/mozilla-central/rev/e8049b1a59263e10a53527b77d3be636c8b07813 "Implement double-tap-to-zoom content". We see that we are comparing bRect.height to rect.h, bRect is the bounding client rect of the element to zoom to (plus margin), rect is bRect rounded with one important difference: the height of rect is Math.min(bRect.width * viewport.height / viewport.height, bRect.height). This code has a bug in that viewport.height / viewport.height should be viewport.height / viewport.width. This code is intending to shrink the height of bRect so rect has the same aspect ratio as the viewport. So now the comparison of bRect.height and rect.h makes sense: it is checking if we shrunk the bRect vertically to match the aspect ratio. So the code was broken from the initial landing.

Then https://hg.mozilla.org/mozilla-central/rev/83bf684a81e99726c5783a788e360c84651ef925 landed which removed the aspect ratio calculation and made rect just bRect rounded.

And then https://hg.mozilla.org/integration/mozilla-inbound/rev/4b0ef3b98b72 faithfully ports the broken code to C++.

And then https://hg.mozilla.org/mozilla-central/rev/a404231c514a implements the aspect ratio calculation properly without realizing there was buggy code already in the tree attempting to do the same.

Depends on D110535

Differential Revision: https://phabricator.services.mozilla.com/D110536
2021-04-05 20:48:10 +00:00
Makoto Kato 75950e479b Bug 1681019 - Set initial scale to 1 on helper_zoomToFocusedInput_iframe.html r=botond
This test was added by bug 1660932 that zoomToFocusedInput scrolls visible position on multi line control.
As workaround of test failure on GV, I would like to set initial scale to 1.

Differential Revision: https://phabricator.services.mozilla.com/D110509
2021-04-02 01:44:02 +00:00
Botond Ballo 46b9eed9db Bug 1702380 - Do a full display list rebuild if the pref layout.scrollbars.always_layerize_track is flipped. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D110501
2021-04-02 00:12:48 +00:00
Bogdan Tara 47699fef8f Backed out 2 changesets (bug 1702380) for webrender reftest failures on retained-dl-* CLOSED TREE
Backed out changeset ff3e342432c9 (bug 1702380)
Backed out changeset 456b17514132 (bug 1702380)
2021-04-01 20:42:57 +03:00
Botond Ballo 36722ab9aa Bug 1702380 - Do a full display list rebuild if the pref layout.scrollbars.always_layerize_track is flipped. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D110501
2021-04-01 16:34:07 +00:00
Botond Ballo 3a0314531e Bug 1699868 - If an event is over the overscroll gutter of a subframe, target the subframe. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D110185
2021-03-30 04:07:23 +00:00
Botond Ballo 80016e47e5 Bug 1699868 - Extend ComputeTransformForNode with an out-parameter. r=tnikkel
If the function returns a transform that includes an overscroll transform,
the out-parameter is populated with the APZC which is the source of the overscroll.

This is mostly for convenience, to avoid the caller having to duplicate
the logic for this (which is somewhat nontrivial as the overscroll transform
is part of the visual component of the async transform, which for the root
content APZC is lifted from the APZC's node to the async zoom container node).

Differential Revision: https://phabricator.services.mozilla.com/D110184
2021-03-30 04:07:23 +00:00
Botond Ballo 244af175fb Bug 1699868 - Consider the overscroll transform to be part of the visual component of the async transform. r=tnikkel
This is the portion that applies to fixed content as well, and we do want
the overscroll transform to apply to fixed content.

Differential Revision: https://phabricator.services.mozilla.com/D110183
2021-03-30 04:07:22 +00:00
Botond Ballo b6dc64a99e Bug 1699868 - Make IsInOverscrollGutter() a bit more general. r=tnikkel
This patch makes two improvements:

 1. The function no longer assumes that the point, disregarding the
    overscroll transform, is inside the composition bounds. It now
    checks for this as well.

 2. A ParentLayerPoint overloaded is added, such that if we already
    have the hit-test point available in APZC coordinates, we don't
    have to convert it again.

Differential Revision: https://phabricator.services.mozilla.com/D110182
2021-03-30 04:07:22 +00:00
Botond Ballo c8878e969f Bug 1699868 - Add a test exercising hit-testing on an overscrolled subframe. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109986
2021-03-30 04:07:21 +00:00
Hiroyuki Ikezoe acafeda74c Bug 1700702 - Disallow overscrolling in single line text controls. r=botond
Depends on D110052

Differential Revision: https://phabricator.services.mozilla.com/D110053
2021-03-29 23:10:26 +00:00
Hiroyuki Ikezoe 384365b121 Bug 1700702 - Split overscroll tests into a new file. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D110052
2021-03-29 23:10:25 +00:00
Hiroyuki Ikezoe 5b2990a138 Bug 1701077 - Use ScrollDirections for OverscrollEffectBase::ConsumeOverscroll. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D109837
2021-03-28 22:45:13 +00:00
Hiroyuki Ikezoe 2ede69ee22 Bug 1701077 - Drop the overscroll animation's velocity on axes where we don't allow overscrolling. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D109836
2021-03-28 22:45:13 +00:00
Hiroyuki Ikezoe b82d2df923 Bug 1701077 - Factor out GetOverscrollableDirections. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D109835
2021-03-28 22:45:12 +00:00
Botond Ballo 360510cb7d Bug 1700819 - Check that preventDefault() works for DOMMouseScroll events as well. r=tnikkel
To trigger the failure more reliably, wait for a frame between sending
the synthesized events, so that events and content responses
interleave more.

Also, send some smaller deltas so they fall under the threshold where
a naively computed mLineOrPageDeltaY might be zero.

Differential Revision: https://phabricator.services.mozilla.com/D110008
2021-03-27 23:29:18 +00:00
Botond Ballo ad4bb2aa89 Bug 1700819 - Improve logging. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D110007
2021-03-27 23:29:18 +00:00
Botond Ballo 8d01a0fcb9 Bug 1700819 - Move TransformEnd handling into synthesizeTouchpadPinch() and make it optional. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D110006
2021-03-27 23:29:17 +00:00
Botond Ballo 9c537786ed Bug 1699880 - Avoid unnecessary work in AsyncPanZoomController::IsOverscrolled(). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109688
2021-03-26 04:13:54 +00:00
Botond Ballo a81c1d3997 Bug 1699880 - Gate the test async scroll offset going into overscroll on a pref. r=tnikkel
This way, tests which specifically want to test overscroll can set the
pref explicitly, and other tests need not worry about accidentally
going into overscroll.

Differential Revision: https://phabricator.services.mozilla.com/D109435
2021-03-26 04:13:54 +00:00
Hiroyuki Ikezoe dd8b043633 Bug 1694898 - Override AsyncPanZoomEnabled in nsCocoaWindow to delegate it to nsChildView in the case of popups. r=mstange,botond
The widget for popup window on Mac is nsCocoaWindow which doesn't have
any APZC instances so that nsIWidget::AsyncPanZoomEnabled() always returned
false, we need to delegate the call to the nsChildView.

To be honest, I am quite unsure whether other functions using APZC also need
to be delegated or not, but I haven't noticed any issues now, so we will
fix one by one if there are any other issues.

Unfortunately the mochitest for this issue doesn't work both on Linux and
Windows, but it's presumably an issue in our testing machinery relevant with
nsIDOMWindowUtils.sendNativeMouseScrollEvent, it will not be a problem in the
wild because scrolling by real mouse wheel works fine there.

Differential Revision: https://phabricator.services.mozilla.com/D109572
2021-03-25 23:14:12 +00:00
Hiroyuki Ikezoe 6973088672 Bug 1694898 - Factor out flushApzRepaintsInPopup. r=botond
We'd like to use the function in a new mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D109682
2021-03-25 23:14:12 +00:00
Botond Ballo d091310519 Bug 1686146 - Do not dispatch events over the overscroll gutter to Gecko. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109189
2021-03-25 18:13:12 +00:00
Botond Ballo 3d363f8e91 Bug 1686146 - Fix an incorrect comment. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109188
2021-03-25 18:13:11 +00:00
Botond Ballo f6b05b2b36 Bug 1686146 - Add a test exercising hit-testing when the RCD-RSF is overscrolled. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109187
2021-03-25 18:13:11 +00:00
Botond Ballo 306c83cbc9 Bug 1700251 - Move the code to set the LayersId on the event into InputHandlingResult::Finish(). r=tnikkel
This allows that code (and in the future, other code that needs
to run for every input type) to be in just one place.

Depends on D109460

Differential Revision: https://phabricator.services.mozilla.com/D109461
2021-03-25 03:41:01 +00:00
Botond Ballo 5ff95760dc Bug 1700251 - Move the HitTestResult into the InputHandlingState. r=tnikkel
Depends on D109459

Differential Revision: https://phabricator.services.mozilla.com/D109460
2021-03-25 03:41:01 +00:00
Botond Ballo 8afb24e3fb Bug 1700251 - Factor out a HitTestResult::CopyWithoutScrollbarNode() helper. r=tnikkel
Depends on D109458

Differential Revision: https://phabricator.services.mozilla.com/D109459
2021-03-25 03:41:00 +00:00
Botond Ballo 16fade4fa5 Bug 1700251 - Inline the local hitResult variable in ReceiveInputEvent(). r=tnikkel
Depends on D109457

Differential Revision: https://phabricator.services.mozilla.com/D109458
2021-03-25 03:41:00 +00:00
Botond Ballo 3831d01bb8 Bug 1700251 - Introduce InputHandlingState. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109457
2021-03-25 03:40:59 +00:00
Masayuki Nakano b4094e2c64 Bug 1528289 - part 4: Prevent `click` event if APZC cancels autoscroll synchronously r=botond
The automated tests become orange only in macOS and 32bit Windows builds.  It
fails when left mouse button down is synthesized in the autoscroller (a XUL
`<panel>` element).  Although I'm not sure why that depends on the platform,
APZ cancels active autoscrolling before dispatching `mousedown` event.
Therefore, `AutoScrollParent` nor `AutoScrollChild` cannot block the following
click event.

Therefore, this patch adds new field into `APZEventResult` and set it to `true`
when APZ runs `autoscroll` but canceled by a mouse input.  Then, `nsBaseWidget`
can prevent following click event of `eMouseDown` and `eMouseUp` events as
expected before dispatching them into the DOM tree.  (FYI: Preventing click
event of either `eMouseDown` or `eMouseUp` can prevent the following `click`
event, etc.)

Differential Revision: https://phabricator.services.mozilla.com/D107325
2021-03-23 19:22:49 +00:00
Kartikaya Gupta 8578230f3f Bug 1699997 - Remove unused moveMouseAndScrollWheelOver function. r=botond
Everybody uses the promise-style equivalent so we can just move over
the documentation and drop the function.

Depends on D109248

Differential Revision: https://phabricator.services.mozilla.com/D109249
2021-03-22 23:25:42 +00:00
Kartikaya Gupta f9ea14eba7 Bug 1699997 - Remove unused synthesizeNativeMouseEventWithAPZAndWaitForEvent function. r=botond
It was only used by the promise-style equivalent, so this folds the two together.

Depends on D109247

Differential Revision: https://phabricator.services.mozilla.com/D109248
2021-03-22 23:25:41 +00:00
Kartikaya Gupta 6fd1b63595 Bug 1699997 - Remove synthesizeNativeWheelAndWaitForScrollEvent and migrate callers to promiseNativeWheelAndWaitForScrollEvent. r=botond
Depends on D109246

Differential Revision: https://phabricator.services.mozilla.com/D109247
2021-03-22 23:25:41 +00:00
Kartikaya Gupta 016e398f2f Bug 1699997 - Convert synthesizeNativeWheelAndWaitForObserver from callback-style to promise-style. r=botond
This function has only one caller, which was trivial to migrate.

Depends on D109245

Differential Revision: https://phabricator.services.mozilla.com/D109246
2021-03-22 23:25:40 +00:00
Kartikaya Gupta 4b1b64c91f Bug 1699601 - Rename promiseApzRepaintsFlushed to promiseOnlyApzControllerFlushed. r=botond
This was a mechanical search-and-replace operation, plus adding some docs on
renamed function.

Differential Revision: https://phabricator.services.mozilla.com/D109245
2021-03-22 23:25:40 +00:00
Hiroyuki Ikezoe 02782145d1 Bug 1697679 - Start an OverscrollAnimation in OnPan for momentum gestures if we"ve been into overscrolled state and ignore subsequent momentums during the animation is running. r=botond,mstange
Depends on D108901

Differential Revision: https://phabricator.services.mozilla.com/D109012
2021-03-22 22:56:45 +00:00
Hiroyuki Ikezoe 54a1fed65e Bug 1697679 - Start an OverscrollAnimation in OnPanEnd if we are in overscrolled state. r=botond,mstange
Differential Revision: https://phabricator.services.mozilla.com/D108901
2021-03-22 22:56:44 +00:00
alaaemad 4c0ff82c4e Bug 1694311 - Populate PinchGestureInput::mLineOrPageDeltaY on Linux. r=tnikkel
This ensures that, in addition to wheel events, DOMMouseScroll events are
also dispatched to Gecko during pinches.

Differential Revision: https://phabricator.services.mozilla.com/D107390
2021-03-22 22:48:45 +00:00
Botond Ballo 6608cc83e3 Bug 1694311 - Promiseify scenario 4 in helper_zoom_with_touchpad.html. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109430
2021-03-22 22:48:45 +00:00
Sawyer Bergeron cca020a971 Bug 1697712 - Allow going into overscroll using the test async scroll offset r=tnikkel
Also add a reftest which uses this to test overscroll rendering.

Differential Revision: https://phabricator.services.mozilla.com/D102115
2021-03-20 02:20:42 +00:00
Timothy Nikkel cf07767d24 Bug 1698353. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D108754
2021-03-18 09:19:09 +00:00
Timothy Nikkel 5b375a59a6 Bug 1698841. Ignore non-touch input blocks in AsyncPanZoomController::OnDoubleTap. r=botond
We can either get here via touch events interpreted as a double tap, or a double tap event sent from the os. The former will have a touch block, the latter will have no input block associated with it.

The crash shows it's possible to get here with another type of current input block.

The other option would be to ignore the double tap if we get here and there is a current input block that is not touch. Not sure if that is better or not.

Differential Revision: https://phabricator.services.mozilla.com/D108716
2021-03-17 20:47:57 +00:00
Kartikaya Gupta e24871a566 Bug 1698441 - Remove synthesizeNativeWheelAndWaitForWheelEvent. r=tnikkel
Depends on D108442

Differential Revision: https://phabricator.services.mozilla.com/D108443
2021-03-16 00:02:22 +00:00
Kartikaya Gupta 13f63c84fa Bug 1698441 - Remove call to synthesizeNativeWheelAndWaitForWheelEvent. r=tnikkel
This test is not actually run in CI (disabled via mochitest.ini), so
this has zero effect. Even if it did run, the call to
synthesizeNativeWheelAndWaitForWheelEvent is not passing in a callback
function; it runs the following rAF line immediately. So calling the
function that "waits for the wheel event" is pointless, we can just
call the version that synthesizes the native wheel input and it is
functionally identical.

Depends on D108441

Differential Revision: https://phabricator.services.mozilla.com/D108442
2021-03-16 00:02:22 +00:00
Kartikaya Gupta 4df00b4369 Bug 1698439 - Flatten async function in browser_test_background_tab_scroll.js to remove flushApzRepaints call. r=tnikkel
Depends on D108440

Differential Revision: https://phabricator.services.mozilla.com/D108441
2021-03-16 00:02:21 +00:00
Kartikaya Gupta 3e21a185f0 Bug 1698439 - Remove unused callback-style function. r=tnikkel
Depends on D108439

Differential Revision: https://phabricator.services.mozilla.com/D108440
2021-03-16 00:02:21 +00:00
Kartikaya Gupta 7f6293bb4f Bug 1698439 - Replace calls to flushApzRepaints with promise equivalent. r=tnikkel
These tests are too annoying to restructure completely, so I'm just
doing a local inlining of the function here.

Depends on D108438

Differential Revision: https://phabricator.services.mozilla.com/D108439
2021-03-16 00:02:20 +00:00
Kartikaya Gupta 752487cb0c Bug 1698439 - Rearrange helper_override_root.html to remove flushApzRepaints call. r=tnikkel
This restructures the test from a callback-style test into an async/await-style
test that is functionally equivalent.

Depends on D108437

Differential Revision: https://phabricator.services.mozilla.com/D108438
2021-03-16 00:02:20 +00:00
Kartikaya Gupta 48c76d19ce Bug 1698439 - Rearrange helper_iframe_pan.html to remove flushApzRepaints call. r=tnikkel
This restructures the test from a callback-style test into an async/await-style
test that is functionally equivalent.

Depends on D108436

Differential Revision: https://phabricator.services.mozilla.com/D108437
2021-03-16 00:02:20 +00:00
Kartikaya Gupta 17044c6af3 Bug 1698439 - Rearrange helper_div_pan.html to remove flushApzRepaints call. r=tnikkel
This restructures the test from a callback-style test into an async/await-style
test that is functionally equivalent.

Depends on D108435

Differential Revision: https://phabricator.services.mozilla.com/D108436
2021-03-16 00:02:19 +00:00
Kartikaya Gupta 341c8fa58f Bug 1698439 - Replace nested callbacks with await calls. r=tnikkel
Depends on D108434

Differential Revision: https://phabricator.services.mozilla.com/D108435
2021-03-16 00:02:19 +00:00
Kartikaya Gupta 3d60f2b16d Bug 1698437 - Fully convert tests to async-style so they run to completion. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D108434
2021-03-16 00:02:18 +00:00
Sawyer Bergeron 2ecfa53c5f Bug 1690430 - Clamp scroll offset during ApplyAsyncTestAttributes. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D103850
2021-03-15 21:29:15 +00:00
Sylvestre Ledru 81b14e2ac7 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D108334
2021-03-15 08:45:29 +00:00
Botond Ballo 5f78d6f8ef Bug 1696846 - Make sure APZ knows about the wheel listener in helper_zoom_with_touchpad.html before sending it events. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D108306
2021-03-13 03:48:10 +00:00
Timothy Nikkel 957d767576 Bug 1696802. Add test. r=botond,mstange
Creating an event with type NSEventTypeSmartMagnify does not work with either NSEvent mouseEventWithType or NSEvent otherEventWithType (they both hit an assert in the appkit code). So the best we can do is call the same function.

Differential Revision: https://phabricator.services.mozilla.com/D107792
2021-03-12 02:10:43 +00:00
Timothy Nikkel 7d1fc30871 Bug 1696802. Add code to support double tap to zoom on mac. r=botond,mstange
We already have a pref for double tap to zoom with is already enabled by default so it's kind of awkward to add another pref.

Differential Revision: https://phabricator.services.mozilla.com/D107389
2021-03-12 02:10:36 +00:00
nsmoker cde464b48d Bug 1614850 - Fixed a crash when enabling layers.progressive_paint on desktop and sandboxed platforms. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107943
2021-03-12 00:32:01 +00:00
Kagami Sascha Rosylight 46f609593d Bug 1697253 - Hide VisualViewport interface behind the existing pref r=edgar
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.

Differential Revision: https://phabricator.services.mozilla.com/D107742
2021-03-11 20:51:51 +00:00
Timothy Nikkel e541ae5b11 Bug 1697416. Fix helper_bug1299195.html when double tap to zoom is enabled on mac. r=botond
The test send two taps, which triggers a double tap zoom if it's enabled, and then the test doesn't get the expected events. So change the test to disable zooming and then enable the meta viewport pref so that we respect it on desktop.

Differential Revision: https://phabricator.services.mozilla.com/D107791
2021-03-10 23:43:25 +00:00
Hiroyuki Ikezoe 9941b7e92f Bug 1696442 - Make ScrollingDownWillMoveDynamicToolbar return a pair of boolean and cont AsyncPanZoomController*. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107291
2021-03-10 23:36:14 +00:00
Dorel Luca 0f483545c6 Backed out changeset e780bd8fa66a (bug 1697253) for Mochitest failures in dom/base/test/test_domwindowutils.html. CLOSED TREE 2021-03-11 01:24:46 +02:00
Kagami Sascha Rosylight c7276af0c1 Bug 1697253 - Hide VisualViewport interface behind the existing pref r=edgar
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.

Differential Revision: https://phabricator.services.mozilla.com/D107742
2021-03-10 21:20:30 +00:00
Emilio Cobos Álvarez efde306ead Bug 1697240 - Support painting mac scrollbars with WebRender. r=mstange
Depends on D107688

Differential Revision: https://phabricator.services.mozilla.com/D107689
2021-03-10 16:43:58 +00:00
Jonathan Kew ceb44d34d6 Bug 1664730 - Disable async font fallback when running mochitests, to avoid unpredictable extra reflows that can disrupt event-/timing-sensitive tests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107284
2021-03-10 12:26:52 +00:00
Bogdan Tara 98cb340edc Backed out 2 changesets (bug 1697240) for layout/reftests/ OS X swr failures CLOSED TREE
Backed out changeset 3621d74d2902 (bug 1697240)
Backed out changeset b2a26b7bcc32 (bug 1697240)
2021-03-10 10:56:53 +02:00
Emilio Cobos Álvarez 89eba8ab82 Bug 1697240 - Support painting mac scrollbars with WebRender. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107689
2021-03-10 01:04:52 +00:00
Makoto Kato 85c00f819f Bug 1695531 - Don't wait for focus when all tests are finished. r=botond
Previous fix of bug 1681211 waited for focus even if all tests were finished.
It caused that sendAsyncMessage may post the cleanup message after the window
is destroyed.

So I shouldn't wait for focus when all tests are finished.

Differential Revision: https://phabricator.services.mozilla.com/D107435
2021-03-09 23:37:51 +00:00
alaaemad 80ba7d4095 Bug 1696846 - Run helper_zoom_with_touchpad.html with the same prefs as other zooming tests r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107516
2021-03-09 02:28:46 +00:00
alaaemad 44695ef057 Bug 1692023 - Add more tests for Linux touchpad zooming r=botond
Differential Revision: https://phabricator.services.mozilla.com/D106132
2021-03-07 18:57:40 +00:00
Kagami Sascha Rosylight e9a7261412 Bug 1360715 - Part 3: Remove remaining cross-context instanceof from tests r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106663
2021-03-04 22:03:58 +00:00
Kagami Sascha Rosylight a9417a719e Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106662
2021-03-04 22:03:57 +00:00
Brindusan Cristian b926d96be6 Backed out 3 changesets (bug 1360715) for mochitest failures at test_WebCrypto.html. CLOSED TREE
Backed out changeset b4a14c42313d (bug 1360715)
Backed out changeset 0e4b1b65fcbe (bug 1360715)
Backed out changeset fb8b9841d82b (bug 1360715)
2021-03-04 21:15:16 +02:00
Kagami Sascha Rosylight 7bec866ac5 Bug 1360715 - Part 3: Remove remaining cross-context instanceof from tests r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106663
2021-03-04 15:05:27 +00:00
Kagami Sascha Rosylight 73ec445d30 Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106662
2021-03-04 15:05:26 +00:00
Timothy Nikkel 1c8a4090eb Bug 1684520. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D106870
2021-03-04 09:59:39 +00:00
Timothy Nikkel ee591fdf27 Bug 1684520. Do not consider the scroll offset to be updated when we recieve a smooth scroll request. r=botond
A smooth scroll request is a request to perform scrolling in the future, it does not indicate that the scroll offset has been updated. However we still need to run a few of the things from a scroll offset update.

This seems kind of fragile. We could have more bugs of this type, I didn't look for them or audit the code, but we should.

Differential Revision: https://phabricator.services.mozilla.com/D105280
2021-03-04 09:59:39 +00:00
Kagami Sascha Rosylight 57967895ca Bug 1648267 - Part 5: Add test for dragging by pen r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106051
2021-03-02 18:29:46 +00:00
Hiroyuki Ikezoe cc24f3fbe2 Bug 1678505 - Add overscroll-behavior and scrollable directions into APZHandledResult. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103419
2021-03-02 08:06:28 +00:00
Hiroyuki Ikezoe c5438bb832 Bug 1678505 - Add AsyncPanZoomController::ScrollableDirections. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103418
2021-03-02 08:06:27 +00:00
Hiroyuki Ikezoe 2b2d8e7195 Bug 1678505 - Make APZEventResult::mStatus and mHandledResult private. r=botond
We do want APZEventResult to have a valid mHandledResult in the case of
nsEventStatus_eConsumeDoDefault.

Note that when we call SetStatusAsConsumeDoDefault() with a InputBlockState,
in ReceiveScrollWheelInput() for example, we need to keep the block alive there,
so each block is now RefPtr-ed instead of a raw pointer in such functions (the
raw pointer is sometimes the active one (mActiveWheelBlock etc.) which will be
discarded in ProcessQueue()).

Differential Revision: https://phabricator.services.mozilla.com/D103417
2021-03-02 08:06:27 +00:00
Hiroyuki Ikezoe 34f94a15b2 Bug 1678505 - Rename CanScrollDownwardsWithDynamicToolbar to CanVerticalScrollWithDynamicToolbar. r=botond
The functions are supposed to work with both directions, downwards and upwards,
i.e., it returns true even if the dynamic toolbar is completely hidden and the
root APZC's scroll position is at the bottom edge (i.e. it's no longer
scrollable downwards), this is necessary because the toolbar should also be
moved by swipe-up motions in such situations.

Differential Revision: https://phabricator.services.mozilla.com/D103416
2021-03-02 08:06:26 +00:00
Hiroyuki Ikezoe ac2cc6a253 Bug 1678505 - Make InputQueue::ReceiveInputEvent return APZEventResult. r=botond
Thus, we can easily get more information from ReceiveInputEvent calls by adding
the information into APZEventResult such as overscroll-behavior etc. (instead
of adding more arguments to ReceiveInputEvent)

Differential Revision: https://phabricator.services.mozilla.com/D103414
2021-03-02 08:06:26 +00:00
Hiroyuki Ikezoe 1ea5dba759 Bug 1678505 - Drop setting nsEventStatus_eIgnore in the eWheelEventClass case. r=botond
It's been set to nsEventStatus_eIgnore in its initialization and never changed
in the branch.

Differential Revision: https://phabricator.services.mozilla.com/D103413
2021-03-02 08:06:26 +00:00
Hiroyuki Ikezoe 22845412b9 Bug 1678505 - Drop the |*aOutputHandledResult == Some(HabdledByContent)| check. r=botond
The incoming aOutputHandledResult is set to `HandledByContent` in
HitTestResult::HandledByRoot() if the target APZC is not the root one, so it's
equivalent with the |!target->IsRootContent()| check in
InputQueue::ReceiveTouchInput() basically.

Differential Revision: https://phabricator.services.mozilla.com/D103412
2021-03-02 08:06:25 +00:00
Hiroyuki Ikezoe b7d077670b Bug 1678505 - s/VerticalScollDirection/VerticalScrollDirection/. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103411
2021-03-02 08:06:25 +00:00
Hiroyuki Ikezoe cb744d4a9d Bug 1695801 - Make sure gfxPlatform::GetPlatform() is invoked before using any gfx variables. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D106857
2021-03-02 01:06:18 +00:00
Jamie Nicol 226a216318 Bug 1658205 - Don't sample APZ post webrender scene build. r=botond,nical
Conceptually we should only sample APZ on frame build, never on scene
build. When a late scene build occured, this unnecessary sample was
the underlying cause of the non-monotonic sample times as seen in bug
1653796. The fix for bug 1653796 introduced non-vsync-aligned sample
times to work around this, but these lead to inconsistent scroll
deltas during fling animations, appearing as janky scrolling on
Android.

This patch fixes the underling issue, by removing the sample after
scene building. This means we no longer hit the case where sample
times are in the past after a late scene build, allowing us to revert
bug 1653796 to ensure that sample times remain vsync-aligned.

Differential Revision: https://phabricator.services.mozilla.com/D106414
2021-03-01 09:00:00 +00:00
Makoto Kato db1924a474 Bug 1681211 - Add workaround to take window focus by window.open. r=botond
Actually I disable test_group_zoomToFocusedInput.html with fission+xorign.
But I would like to turn on this again.

Although we call window.open after calling window.close for old test window,
new window by window.open don't take focus. This issue is bug 1695135.

It means that the following new window (w) doesn't take focus with fission+
xorign.

```
old_window.close();
let w = window.open("", "_blank");
```

So as workaround, we have to wait for getting focus on parent window after
test window is closed.

Differential Revision: https://phabricator.services.mozilla.com/D106609
2021-02-28 14:59:31 +00:00
tanweerali 6a27002564 Bug 1668913 - Audit usages of ScaleFactors2D::ToScaleFactor(). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D106576
2021-02-27 21:17:55 +00:00
Botond Ballo ca6316e9cd Bug 1685004 - Disable layout.reflow.synthMouseMove for helper_long_tap.html. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106688
2021-02-27 17:37:15 +00:00
Csoregi Natalia 863547c177 Merge mozilla-central to autoland on a CLOSED TREE 2021-02-27 11:48:23 +02:00
Csoregi Natalia b08394edf3 Backed out 11 changesets (bug 1678505) for causing crashes. a=backout
Backed out changeset 7cd5f2c1c3f4 (bug 1678505)
Backed out changeset 09f4c4093c07 (bug 1678505)
Backed out changeset 76e3f391b7dd (bug 1678505)
Backed out changeset 6a0e949d4a2d (bug 1678505)
Backed out changeset 69c7b98ac8f6 (bug 1678505)
Backed out changeset 63608c5df1b0 (bug 1678505)
Backed out changeset a4532c4a1768 (bug 1678505)
Backed out changeset 09aab64b89cd (bug 1678505)
Backed out changeset e832d2bfe7a6 (bug 1678505)
Backed out changeset e0898b4f9fe6 (bug 1678505)
Backed out changeset 04a759c327cd (bug 1678505)
2021-02-27 11:26:46 +02:00
Botond Ballo bf87c0093b Bug 1688453 - Add a test for bug 1682919. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D103256
2021-02-27 02:28:57 +00:00
Hiroyuki Ikezoe fe23faeb41 Bug 1678505 - Add overscroll-behavior and scrollable directions into APZHandledResult. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103419
2021-02-26 04:15:18 +00:00
Hiroyuki Ikezoe afc49cdb4e Bug 1678505 - Add AsyncPanZoomController::ScrollableDirections. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103418
2021-02-26 04:15:18 +00:00
Hiroyuki Ikezoe ddfe302394 Bug 1678505 - Make APZEventResult::mStatus and mHandledResult private. r=botond
We do want APZEventResult to have a valid mHandledResult in the case of
nsEventStatus_eConsumeDoDefault.

Note that when we call SetStatusAsConsumeDoDefault() with a InputBlockState,
in ReceiveScrollWheelInput() for example, we need to keep the block alive there,
so each block is now RefPtr-ed instead of a raw pointer in such functions (the
raw pointer is sometimes the active one (mActiveWheelBlock etc.) which will be
discarded in ProcessQueue()).

Differential Revision: https://phabricator.services.mozilla.com/D103417
2021-02-26 04:15:18 +00:00
Hiroyuki Ikezoe 2af8bf1e64 Bug 1678505 - Rename CanScrollDownwardsWithDynamicToolbar to CanVerticalScrollWithDynamicToolbar. r=botond
The functions are supposed to work with both directions, downwards and upwards,
i.e., it returns true even if the dynamic toolbar is completely hidden and the
root APZC's scroll position is at the bottom edge (i.e. it's no longer
scrollable downwards), this is necessary because the toolbar should also be
moved by swipe-up motions in such situations.

Differential Revision: https://phabricator.services.mozilla.com/D103416
2021-02-26 04:15:17 +00:00
Hiroyuki Ikezoe f9c427e1cd Bug 1678505 - Make InputQueue::ReceiveInputEvent return APZEventResult. r=botond
Thus, we can easily get more information from ReceiveInputEvent calls by adding
the information into APZEventResult such as overscroll-behavior etc. (instead
of adding more arguments to ReceiveInputEvent)

Differential Revision: https://phabricator.services.mozilla.com/D103414
2021-02-26 04:15:17 +00:00
Hiroyuki Ikezoe dce8bd27c1 Bug 1678505 - Drop setting nsEventStatus_eIgnore in the eWheelEventClass case. r=botond
It's been set to nsEventStatus_eIgnore in its initialization and never changed
in the branch.

Differential Revision: https://phabricator.services.mozilla.com/D103413
2021-02-26 04:15:16 +00:00
Hiroyuki Ikezoe c854fbf48c Bug 1678505 - Drop the |*aOutputHandledResult == Some(HabdledByContent)| check. r=botond
The incoming aOutputHandledResult is set to `HandledByContent` in
HitTestResult::HandledByRoot() if the target APZC is not the root one, so it's
equivalent with the |!target->IsRootContent()| check in
InputQueue::ReceiveTouchInput() basically.

Differential Revision: https://phabricator.services.mozilla.com/D103412
2021-02-26 04:15:16 +00:00
Hiroyuki Ikezoe e21a249c77 Bug 1678505 - s/VerticalScollDirection/VerticalScrollDirection/. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103411
2021-02-26 04:15:16 +00:00
Andrew Osmond 3c43f9b95a Bug 1686960 - Add jobs for OSX Software WebRender reftests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D106567
2021-02-26 01:45:24 +00:00
Andrew Osmond 29848ac31b Bug 1693383 - Part 1. Adjust tests to correctly detect HW-WR and SW-WR variants. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D105620
2021-02-24 18:47:23 +00:00
Masayuki Nakano cc1bfd3ee1 Bug 1691622 - part 13: Make `helper_scrollbarbutton_repeat.html` use new API to synthesize native mouse click. r=fix CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D106244
2021-02-24 03:38:59 +00:00
Masayuki Nakano 1c60ca0e2c Bug 1691622 - part 12: Change the default unit of `screenX/Y` of `synthesizeNativeMouseEvent` from device pixels to CSS pixels r=smaug
For minimizing the previous patch changes, `scale`'s default value for
`screenX/Y` is treated as 1.0.  It means that `screenX/Y` are device
pixels by default, but `offsetX/Y` are in CSS pixels by default.  This
difference may make developers confused.  Therefore, we should align the
default unit of them to `screenPixelsPerCSSPixel`.  I.e., their default
unit becomes CSS pixels.

Differential Revision: https://phabricator.services.mozilla.com/D105929
2021-02-24 01:27:11 +00:00
Masayuki Nakano 876ef492b9 Bug 1691622 - part 11: Make mochitests stop using `nsIDOMWindowUtils.sendNativeMouseEvent` directly as far as possible r=smaug
For making the test framework/API change easier, such raw API shouldn't be
used directly.  Therefore, this patch makes tests using it directly stop
using it and use `synthesizeNativeMouseEvent` instead.

However, this patch does not fix `browser_touch_event_iframes.js` because
it accesses the API from `ContentTask`.  So, `EventUtils.js` isn't available
without larger change.

Note that this patch disables `test_bug596600.xhtml` because as I commented
in it, it's completely broken.  It depends on the race of next native event
loop and `waitForTick`, and this patch changes the result of the race.

Differential Revision: https://phabricator.services.mozilla.com/D105765
2021-02-24 01:27:11 +00:00
Masayuki Nakano b77b790e20 Bug 1691622 - part 10: Make `synthesizeNativeMouseEvent` take a button argument r=smaug
Now, it should take `button` argument whose default value is 0 (primary
button).

Differential Revision: https://phabricator.services.mozilla.com/D105764
2021-02-24 01:27:10 +00:00
Masayuki Nakano ef2253b4a1 Bug 1691622 - part 9: Make `nsIWidget::SynthesizeNativeMouseEvent` take an XP button ID and abstract message value r=smaug,geckoview-reviewers,agi,m_kato
Currently, it takes a raw native message value, but it makes JS content too
complicated.  And on Linux, it cannot synthesize non-primary button events
because GDK has only button press and release messages which dont' include
mouse button information.

For solving these problems, this patch creates a new abstract native message
as `nsIWidget::NativeMouseMessage` and makes each widget converts it to
a platform native message.

Additionally, this patch adds an argument to make it possible its callers
to specify pressing or releasing mouse button with a DOM mouse button value.

Note that the following patch adds new argument to
`synthesizeNativeEventMouse*` for mochitests and which will be tested by
new tests.

Differential Revision: https://phabricator.services.mozilla.com/D105763
2021-02-24 01:27:10 +00:00
Masayuki Nakano bc2a8bc131 Bug 1691622 - part 7: Merge `synthesizeNativeMouseMove*` with `synthesizeNativeMouseEvent*` r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105761
2021-02-24 01:27:09 +00:00
Masayuki Nakano 44ff291cb4 Bug 1691622 - part 6: Merge `synthesizeNativeMouseClick*` with `synthesizeNativeMouseEvent*` r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105760
2021-02-24 01:27:08 +00:00
Masayuki Nakano 293d2541c8 Bug 1691622 - part 5: Make `synthesizeNativeMouseClick*` take an event type r=smaug
Let's make `synthesizeNativeMouseClick*` take an event type, and only when
it's click, it should send native mouse event twice.

Then, we can all them `synthesizeNativeMouseEvent*`.

Differential Revision: https://phabricator.services.mozilla.com/D105759
2021-02-24 01:27:08 +00:00
Masayuki Nakano b63882dde8 Bug 1691622 - part 4: Make `synthesizeNativeMouseClick*()` aware of modifiers r=smaug,geckoview-reviewers,m_kato
Surprisingly, they don't take modifiers, and
`nsIWidget::SynthesizeNativeMouseEvent()` which are implementations of
`nsIDOMWindowUtils::SendNativeMouseEvent()` treat given modifier flags
are native's ones, and handle modifiers only on macOS.  Therefore, this
patch makes them handle native modifiers of Gecko.

Unfortunately, I'm not so familiar with Android API, and in the short
term, I don't need the support on Android.  Therefore, this patch just
adds a TODO comment on Android widget.

Additionally, we don't have a simple way to set modifier only while
posting a mouse input on Windows too.  It requires complicated code.
Therefore, I don't add the support for it on Windows too.

Differential Revision: https://phabricator.services.mozilla.com/D105758
2021-02-24 01:27:07 +00:00
Masayuki Nakano 613d02b00b Bug 1691622 - part 3: Make `synthesizeNativeMouseClick` take screenX/Y r=smaug
Some tests want to specify screen position directly.  Therefore, they should
have additional fields in the `Object` param to take offset in screen.

Differential Revision: https://phabricator.services.mozilla.com/D105757
2021-02-24 01:27:07 +00:00
Masayuki Nakano 0d0a504a13 Bug 1691622 - part 2: Merge `synthesizeNativeMouseClickAtCenter` with `synthesizeNativeMouseClick` r=smaug
With adding new feild to the `aParam`, `synthesizeNativeMouseClick` can
work as `synthesizenativeMouseClickAtCenter` too.  Therefore, we can get
rid of the redundant API.

Additionally, this patch makes `synthesizeNativeMouseClickWithAPZ` can
take the new field for consistency between them.

Differential Revision: https://phabricator.services.mozilla.com/D105756
2021-02-24 01:27:07 +00:00
Masayuki Nakano 7242445ca1 Bug 1691622 - part 1: Make `synthesizeNativeMouseClick` take an `Object` instead of multiple arguments for synthesizing events r=smaug
In these days, API should take an `Object` instead of multiple arguments
since the callers look like using "named" arguments and this allows to
add new optional arguments with changing not all callers.

This patch also changes similar API for APZ aware tests for keeping
consistent style for their users.

Differential Revision: https://phabricator.services.mozilla.com/D105755
2021-02-24 01:27:06 +00:00
Emilio Cobos Álvarez 503c1ae27c Bug 1694059 - Green up swgl tests.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-23 13:02:33 +01:00
Emilio Cobos Álvarez 7f2b3314e0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 10:49:37 +00:00
smolnar 7f2e38a6b3 Backed out changeset 960cb2cf2009 (bug 1694059) for causing reftest failures. 2021-02-23 06:41:58 +02:00
alaaemad a5b9a9c206 Bug 1688717 - Enable touchpad pinch gestures on Linux by default r=botond
Differential Revision: https://phabricator.services.mozilla.com/D105632
2021-02-23 03:53:11 +00:00
Emilio Cobos Álvarez c0fec9f98e Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 02:58:47 +00:00
smolnar 79ca2f76fa Backed out changeset 4436a8bb02fd (bug 1694059) for causing reftest failures. CLOSED TREE 2021-02-23 04:17:14 +02:00
Emilio Cobos Álvarez cb286403d0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 01:10:22 +00:00
Hiroyuki Ikezoe 5e05529c77 Bug 1691997 - Walk up the hit testing tree until we find an APZC different from the given |aApzc| in FindHandoffParent. r=botond
So we can avoid an infinite loop in the function when we traverse malformed
trees.

Differential Revision: https://phabricator.services.mozilla.com/D105139
2021-02-22 10:19:04 +00:00
Hiroyuki Ikezoe 6cb8765851 Bug 1542057 - A test that wheel events on an unscrollable OOP iframe are handoff-ed properly. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D105699
2021-02-21 22:26:10 +00:00
Hiroyuki Ikezoe c8f4391928 Bug 1542057 - Drop redundant </head>s. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D105698
2021-02-21 22:26:09 +00:00
Timothy Nikkel f108651215 Bug 1692997. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D105735
2021-02-19 23:15:29 +00:00
alaaemad cf0d502d81 Bug 1640186 - Add machinery for sending native pinch gestures from a test, and a test which uses it r=botond
Currently implemented for Linux

Differential Revision: https://phabricator.services.mozilla.com/D103929
2021-02-19 05:35:40 +00:00
smolnar c37dd67c46 Bug 1691878 - Fix lint failure. a=lin-fix CLOSED TREE DONTBUILD 2021-02-18 12:31:58 +02:00
smolnar da85975c5c Bug 1691878 - Fix eslint failure a=lint-fix CLOSED TREE 2021-02-18 12:00:47 +02:00