mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Add Page::has_ongoing_navigation()
Introduce has_ongoing_navigation() that allows to check if resource state in FrameLoading is pending. This API is going to be used in upcoming fix for wait_for_navigation_to_complete() in WebDriver.
This commit is contained in:
parent
d1d9d7a4f3
commit
31b9729333
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 31b9729333
Pull-request: https://github.com/SerenityOS/serenity/pull/19157
5 changed files with 23 additions and 9 deletions
|
@ -52,6 +52,11 @@ void Page::load_html(StringView html, const AK::URL& url)
|
|||
top_level_browsing_context().loader().load_html(html, url);
|
||||
}
|
||||
|
||||
bool Page::has_ongoing_navigation() const
|
||||
{
|
||||
return top_level_browsing_context().loader().is_pending();
|
||||
}
|
||||
|
||||
Gfx::Palette Page::palette() const
|
||||
{
|
||||
return m_client.palette();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue