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:
Timothy Flynn 2024-10-28 23:37:11 -04:00 committed by Tim Ledbetter
commit fa83cc722c
Notes: github-actions[bot] 2024-10-29 11:04:46 +00:00
22 changed files with 94 additions and 43 deletions

View file

@ -87,6 +87,11 @@ void ViewImplementation::set_window_size(Gfx::IntSize size)
client().async_set_window_size(m_client_state.page_index, size.to_type<Web::DevicePixels>());
}
void ViewImplementation::did_update_window_rect()
{
client().async_did_update_window_rect(m_client_state.page_index);
}
void ViewImplementation::load(URL::URL const& url)
{
m_url = url;