fune/layout
Masayuki Nakano 90b77204fb Bug 1868283 - part 3: Make PresShell::HandleEvent ignore eMouseExitFromWidget and eMouseEnterIntoWidget events which are synthesized in the parent process accidentally r=smaug
Currently, the method ignores synthesized `eMouseMove` events coming from the
parent process if
* the last mouse location was updated by a synthesized mouse event for tests
* the event comes from parent process
* the event is not marked as synthesized for tests

However, `eMouseExitFromWidget` is also handled as a synthesized `eMouseMove` [1].
Therefore, the method needs to ignore this event too in the same conditions.

Additionally, `eMouseEnterIntoWidget` may cause updating the `:hover` state
under the event position which may be different from the last cursor position
in the content process [2].  Therefore, the method needs to ignore this too.

On the other hand, if the event is caused by a test API synthesizing mouse
events, e.g., when `test.events.async.enabled` is set to `true`, the running
test must expect the events.  Therefore, these events need to be marked as
synthesized for tests correctly.  Therefore, this patch updates the
initializers of the events.

1. https://searchfox.org/mozilla-central/rev/78a2c17cc80680a5a82446e4ce7c45a73b935383/dom/events/EventStateManager.cpp#773,794-796,800-801
2. https://searchfox.org/mozilla-central/rev/78a2c17cc80680a5a82446e4ce7c45a73b935383/dom/events/EventStateManager.cpp#4063,4068

Differential Revision: https://phabricator.services.mozilla.com/D195638
2023-12-13 07:13:04 +00:00
..
base Bug 1868283 - part 3: Make PresShell::HandleEvent ignore eMouseExitFromWidget and eMouseEnterIntoWidget events which are synthesized in the parent process accidentally r=smaug 2023-12-13 07:13:04 +00:00
build Bug 1727526 - Have a Stringifyable base class. r=dom-storage-reviewers,janv 2023-12-11 15:17:12 +00:00
docs
forms Bug 1364813 - Remove IsFrameOfType, use non-virtual checks. r=jwatt 2023-11-26 22:17:28 +00:00
generic Bug 1868552 - Make the initial value of -moz-user-focus normal, and make none actually prevent focusability. r=smaug,jwatt 2023-12-12 13:51:30 +00:00
inspector Bug 1852149 Part 3 - Add margin rules to servo r=firefox-style-system-reviewers,emilio 2023-12-08 20:25:55 +00:00
ipc
mathml Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2023-12-04 10:09:36 +00:00
media
painting Bug 1868479 - Fix backdrop-filter with SVG filters r=dholbert 2023-12-07 14:35:13 +00:00
printing Bug 1869217. Don't use the @page rules that match the first page as the page defaults. r=emilio 2023-12-11 17:53:41 +00:00
reftests Bug 1829026 - Increase fuzz. r=aosmond 2023-12-12 19:48:40 +00:00
style Bug 1868552 - Make the initial value of -moz-user-focus normal, and make none actually prevent focusability. r=smaug,jwatt 2023-12-12 13:51:30 +00:00
svg Bug 1839051 - Remove include nsQuickSort.h from some more files. r=emilio 2023-12-11 06:53:28 +00:00
tables Bug 1839051 - Use nsTArray::Sort in the SpanningCellSorter. r=xpcom-reviewers,emilio 2023-12-11 06:53:27 +00:00
tools Bug 1839051 - Remove include nsQuickSort.h from some more files. r=emilio 2023-12-11 06:53:28 +00:00
xul Bug 1868868 - The value of thumb position changed by reflow should be consistent to nsSliderFrame::CurrentPositionChanged, r=emilio 2023-12-12 12:11:13 +00:00
moz.build