1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

LibWeb: Add m_ongoing_navigation in Navigable

This commit is contained in:
Aliaksandr Kalenik 2023-04-24 21:37:35 +03:00 committed by Andreas Kling
parent 2626e28bb6
commit 1ee4a3e310

View file

@ -45,11 +45,20 @@ public:
static JS::GCPtr<Navigable> navigable_with_active_document(JS::NonnullGCPtr<DOM::Document>);
enum class Traversal {
Tag
};
Variant<Empty, Traversal, String> ongoing_navigation() const { return m_ongoing_navigation; }
protected:
Navigable();
virtual void visit_edges(Cell::Visitor&) override;
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#ongoing-navigation
Variant<Empty, Traversal, String> m_ongoing_navigation;
private:
// https://html.spec.whatwg.org/multipage/document-sequences.html#nav-id
String m_id;