mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
5132e0e2ec
According to test result on tryserver, the constructor may receive text frame, although I couldn't reproduce it with writing tests. Then, it'll return the text node as the mouse event target after dispatching a pointer event. However, mouse events need to be targeted to element node. Therefore, it's wrong to use the frame when `aTargetContent` is specified. Additionally, for the last resort, it should refer an inclusive ancestor element of the target frame content if `aTargetContent` is not specified and the event should be targeted to an element. Finally, there is another path to set non-element node in `PresShell::EventHandler::DispatchEventToDOM`. The path is not the cause of the reported case, but we should fix it too. Differential Revision: https://phabricator.services.mozilla.com/D222091 |
||
---|---|---|
.. | ||
base | ||
build | ||
docs | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |