Repository navigation
Remove duplicate click event in simulate_mouse_click - #36957
Merged
Merged
Conversation
Signed-off-by: Euclid Ye <[email protected]>
yezhizhen
commented
May 11, 2025
mrobinson
approved these changes
May 12, 2025
Member
|
Maybe the performance characteristics of |
Member
Author
Thanks for letting me know! I am good with this PR then :) |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 13, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 13, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 13, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 13, 2025
This was referenced Oct 4, 2026
Shraman91
pushed a commit
to Shraman91/servo
that referenced
this pull request
Oct 6, 2026
…criptThread` (servo#48671) Compatibility mouse events for a tap were synthesized by the paint thread as new input events after confirmed by script->constellation->embedder->paint, so they were processed on a later rendering tick than the touchend that triggered them, making touch tests racy/flaky. One particular serious case is, the hit-test for compat mouse events happened when the layout state has already changed. This simplifies API as well, by removing unused `render_api` in `notify_input_event_handled` and point in `PendingClick`. It also simplifies messaging: `simulate_mouse_click` is now removed from paint, which was like paint -> constellation -> script -> embedder -> paint, and repeated 3 times as we had duplicate hit-test 3 times! Testing: `mouseevents-after-touchend.tentative.html` and `/touch-events/hover-state-caused-by-compatibility-mouse-events.tentative.html` has new passing and no longer intermittent. WebDriver `perform_actions/pointer_touch.py` has 4 more new failures: this is newly filed servo#48619 which has always been there, but previously hidden. Fixes: servo#36957 (review), performance related concern Fixes: servo#40233, incorrect behaviour ### Intermittent ones Fixes: servo#46497 Fixes: servo#42813 Fixes: servo#46781 Fixes: servo#46277 Fixes: servo#41175 Fixes: servo#44693 And probably some I'm not aware of yet. --------- Signed-off-by: Euclid Ye <[email protected]>
hhhwsqhhh
pushed a commit
to hhhwsqhhh/servo
that referenced
this pull request
Oct 12, 2026
…criptThread` (servo#48671) Compatibility mouse events for a tap were synthesized by the paint thread as new input events after confirmed by script->constellation->embedder->paint, so they were processed on a later rendering tick than the touchend that triggered them, making touch tests racy/flaky. One particular serious case is, the hit-test for compat mouse events happened when the layout state has already changed. This simplifies API as well, by removing unused `render_api` in `notify_input_event_handled` and point in `PendingClick`. It also simplifies messaging: `simulate_mouse_click` is now removed from paint, which was like paint -> constellation -> script -> embedder -> paint, and repeated 3 times as we had duplicate hit-test 3 times! Testing: `mouseevents-after-touchend.tentative.html` and `/touch-events/hover-state-caused-by-compatibility-mouse-events.tentative.html` has new passing and no longer intermittent. WebDriver `perform_actions/pointer_touch.py` has 4 more new failures: this is newly filed servo#48619 which has always been there, but previously hidden. Fixes: servo#36957 (review), performance related concern Fixes: servo#40233, incorrect behaviour ### Intermittent ones Fixes: servo#46497 Fixes: servo#42813 Fixes: servo#46781 Fixes: servo#46277 Fixes: servo#41175 Fixes: servo#44693 And probably some I'm not aware of yet. --------- Signed-off-by: Euclid Ye <[email protected]>
aphrody-dev
pushed a commit
to aphrody-labs/browser
that referenced
this pull request
Nov 16, 2026
…criptThread` (#48671) Compatibility mouse events for a tap were synthesized by the paint thread as new input events after confirmed by script->constellation->embedder->paint, so they were processed on a later rendering tick than the touchend that triggered them, making touch tests racy/flaky. One particular serious case is, the hit-test for compat mouse events happened when the layout state has already changed. This simplifies API as well, by removing unused `render_api` in `notify_input_event_handled` and point in `PendingClick`. It also simplifies messaging: `simulate_mouse_click` is now removed from paint, which was like paint -> constellation -> script -> embedder -> paint, and repeated 3 times as we had duplicate hit-test 3 times! Testing: `mouseevents-after-touchend.tentative.html` and `/touch-events/hover-state-caused-by-compatibility-mouse-events.tentative.html` has new passing and no longer intermittent. WebDriver `perform_actions/pointer_touch.py` has 4 more new failures: this is newly filed #48619 which has always been there, but previously hidden. Fixes: servo/servo#36957 (review), performance related concern Fixes: #40233, incorrect behaviour ### Intermittent ones Fixes: servo/servo#46497 Fixes: #42813 Fixes: servo/servo#46781 Fixes: servo/servo#46277 Fixes: #41175 Fixes: #44693 And probably some I'm not aware of yet. --------- Signed-off-by: Euclid Ye <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After
InputEvent::Touchprocessed by Script, it sendsTouchEventProcessedback to Constellation, which goes through hit-test etc. and loops back to Script again. However,WebViewRenderer::simulate_mouse_clickshould not sendMouseButtonAction::Clickdue to #36413Testing: Manually tested by converting mouse to touch
cc @jdm @xiaochengh