mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Add NavigationTransition, a transient property of Navigation
This property is useful for web content to determine whether an ongoing navigation has settled or not.
This commit is contained in:
parent
4989375191
commit
3dd3b2019d
11 changed files with 118 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibWeb/HTML/Navigation.h>
|
||||
#include <LibWeb/HTML/NavigationCurrentEntryChangeEvent.h>
|
||||
#include <LibWeb/HTML/NavigationHistoryEntry.h>
|
||||
#include <LibWeb/HTML/NavigationTransition.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -39,6 +40,7 @@ void Navigation::visit_edges(JS::Cell::Visitor& visitor)
|
|||
Base::visit_edges(visitor);
|
||||
for (auto& entry : m_entry_list)
|
||||
visitor.visit(entry);
|
||||
visitor.visit(m_transition);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-entries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue