mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Add window.navigation property
This commit is contained in:
committed by
Andrew Kaster
parent
0c2f758067
commit
7f043e3083
@@ -136,6 +136,7 @@ public:
|
||||
void set_name(String const&);
|
||||
[[nodiscard]] JS::NonnullGCPtr<Location> location();
|
||||
JS::NonnullGCPtr<History> history() const;
|
||||
JS::NonnullGCPtr<Navigation> navigation();
|
||||
void focus();
|
||||
|
||||
JS::NonnullGCPtr<WindowProxy> frames() const;
|
||||
@@ -226,6 +227,9 @@ private:
|
||||
JS::GCPtr<Navigator> m_navigator;
|
||||
JS::GCPtr<Location> m_location;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigation-api
|
||||
JS::GCPtr<Navigation> m_navigation;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-api
|
||||
// Each Window object is associated with a unique instance of a CustomElementRegistry object, allocated when the Window object is created.
|
||||
JS::GCPtr<CustomElementRegistry> m_custom_element_registry;
|
||||
|
||||
Reference in New Issue
Block a user