mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb+WebContent+WebDriver+UI: Make window rect updates asynchronous
It's currently possible for window size/position updates to hang, as the underlying IPCs are synchronous. This updates the WebDriver endpoint to be async, to unblock the WebContent process while the update is ongoing. The UI process is now responsible for informing WebContent when the update is complete.
This commit is contained in:
parent
42984a10e9
commit
fa83cc722c
Notes:
github-actions[bot]
2024-10-29 11:04:46 +00:00
Author: https://github.com/trflynn89
Commit: fa83cc722c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2028
Reviewed-by: https://github.com/tcl3 ✅
22 changed files with 94 additions and 43 deletions
|
@ -209,6 +209,13 @@ Web::WebDriver::Response Session::navigate_to(JsonValue payload) const
|
|||
});
|
||||
}
|
||||
|
||||
Web::WebDriver::Response Session::set_window_rect(JsonValue payload) const
|
||||
{
|
||||
return perform_async_action(web_content_connection().on_window_rect_updated, [&]() {
|
||||
return web_content_connection().set_window_rect(move(payload));
|
||||
});
|
||||
}
|
||||
|
||||
Web::WebDriver::Response Session::execute_script(JsonValue payload, ScriptMode mode) const
|
||||
{
|
||||
return perform_async_action(web_content_connection().on_script_executed, [&]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue