forked from mirrors/gecko-dev
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 |
||
|---|---|---|
| .. | ||
| base | ||
| build | ||
| docs | ||
| forms | ||
| generic | ||
| inspector | ||
| ipc | ||
| mathml | ||
| media | ||
| painting | ||
| printing | ||
| reftests | ||
| style | ||
| svg | ||
| tables | ||
| tools | ||
| xul | ||
| moz.build | ||