servo/ports/servoshell/desktop
batu_hoang f52fa9b672
Synchronize dispatch_actions in WebDriver (#36932)
Implement missing synchronization in `dispatch_actions` of `WebDriver`.
https://w3c.github.io/webdriver/#dispatching-actions

> The user agent event loop has spun enough times to process the DOM
events generated by the last invocation of the >[dispatch tick
actions](https://w3c.github.io/webdriver/#dfn-dispatch-tick-actions)
steps.

- Add a way for `ScriptThread` to notify `WebDriver` about the
completion of input commands.
- Add a `webdriver_id` field for `InputEvent`. `ScriptThread` uses it to
distinguish WebDriver events and sends notification.

Tests:
`./mach test-wpt --product servodriver -r
tests\wpt\tests\webdriver\tests\classic\element_click\events.py` pass if
`hit_testing` pass. Check
[issue](https://github.com/servo/servo/issues/36676#issuecomment-2882917136)

cc: @xiaochengh

---------

Signed-off-by: batu_hoang <longvatrong111@gmail.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-05-21 11:03:04 +00:00
..
protocols Initial support for marking custom protocol secure (#36656) 2025-04-25 10:39:33 +00:00
accelerated_gl_media.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
app.rs Return Result from ProtocolRegistry::register() (#36688) 2025-04-25 10:02:46 +00:00
app_state.rs Fully support <input type=color> (#36992) 2025-05-15 17:30:38 +00:00
cli.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
dialog.rs Fully support <input type=color> (#36992) 2025-05-15 17:30:38 +00:00
egui_glue.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
events_loop.rs libservo: Move animation tracking from WindowMethods to delegates (#36400) 2025-04-09 19:41:53 +00:00
gamepad.rs libservo: Expose a single InputEvent type and pass it to script (#35430) 2025-02-12 17:07:15 +00:00
geometry.rs Use webrender_api::units::DevicePixel rather than style_traits::DevicePixel unless interfacing with Stylo (#34353) 2024-11-25 23:42:04 +00:00
headed_window.rs Synchronize dispatch_actions in WebDriver (#36932) 2025-05-21 11:03:04 +00:00
headless_window.rs libservo: Make zooming and HiDPI scaling work per-WebView (#36419) 2025-04-14 12:01:49 +00:00
keyutils.rs servoshell: Clean up keyboard event conversion a little (#32564) 2024-06-19 19:38:56 +00:00
minibrowser.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
mod.rs libservo: Expose a ServoBuilder (#36549) 2025-04-16 16:58:52 +00:00
tracing.rs servoshell: Port desktop servoshell to use delegate API (#35284) 2025-02-06 07:33:31 +00:00
webxr.rs libservo: Expose a ServoBuilder (#36549) 2025-04-16 16:58:52 +00:00
window_trait.rs libservo: Make zooming and HiDPI scaling work per-WebView (#36419) 2025-04-14 12:01:49 +00:00