mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
WebContent: Actually start WebDriver timeout timers
The timers added previously in #1021 had no effect, as they were never started.
This commit is contained in:
parent
d38b28b57b
commit
5b09430c5e
Notes:
github-actions[bot]
2024-08-10 22:18:57 +00:00
Author: https://github.com/tcl3
Commit: 5b09430c5e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1030
1 changed files with 3 additions and 0 deletions
|
@ -1936,6 +1936,7 @@ ErrorOr<void, Web::WebDriver::Error> WebDriverConnection::wait_for_navigation_to
|
|||
auto timer = Core::Timer::create_single_shot(m_timeouts_configuration.page_load_timeout, [&] {
|
||||
page_load_timeout_fired = true;
|
||||
});
|
||||
timer->start();
|
||||
|
||||
// 4. If there is an ongoing attempt to navigate the current browsing context that has not yet matured, wait for navigation to mature.
|
||||
Web::Platform::EventLoopPlugin::the().spin_until([&] {
|
||||
|
@ -1980,6 +1981,7 @@ void WebDriverConnection::restore_the_window()
|
|||
auto timer = Core::Timer::create_single_shot(m_timeouts_configuration.page_load_timeout, [&] {
|
||||
page_load_timeout_fired = true;
|
||||
});
|
||||
timer->start();
|
||||
|
||||
Web::Platform::EventLoopPlugin::the().spin_until([&]() {
|
||||
auto state = m_page_client->page().top_level_traversable()->system_visibility_state();
|
||||
|
@ -2009,6 +2011,7 @@ Gfx::IntRect WebDriverConnection::iconify_the_window()
|
|||
auto timer = Core::Timer::create_single_shot(m_timeouts_configuration.page_load_timeout, [&] {
|
||||
page_load_timeout_fired = true;
|
||||
});
|
||||
timer->start();
|
||||
|
||||
Web::Platform::EventLoopPlugin::the().spin_until([&]() {
|
||||
auto state = m_page_client->page().top_level_traversable()->system_visibility_state();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue