mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:37:34 +00:00
LibWeb: Update Page to use navigables
This commit is contained in:
parent
f91b34ef2e
commit
ee50d9b2b5
9 changed files with 41 additions and 25 deletions
|
@ -46,11 +46,13 @@ public:
|
|||
PageClient const& client() const { return m_client; }
|
||||
|
||||
// FIXME: This is a hack.
|
||||
bool top_level_browsing_context_is_initialized() const;
|
||||
bool top_level_traversable_is_initialized() const;
|
||||
|
||||
HTML::BrowsingContext& top_level_browsing_context();
|
||||
HTML::BrowsingContext const& top_level_browsing_context() const;
|
||||
|
||||
JS::NonnullGCPtr<HTML::TraversableNavigable> top_level_traversable() const;
|
||||
|
||||
HTML::BrowsingContext& focused_context();
|
||||
HTML::BrowsingContext const& focused_context() const { return const_cast<Page*>(this)->focused_context(); }
|
||||
|
||||
|
@ -145,9 +147,10 @@ private:
|
|||
|
||||
PageClient& m_client;
|
||||
|
||||
JS::Handle<HTML::BrowsingContext> m_top_level_browsing_context;
|
||||
WeakPtr<HTML::BrowsingContext> m_focused_context;
|
||||
|
||||
JS::Handle<HTML::TraversableNavigable> m_top_level_traversable;
|
||||
|
||||
// FIXME: Enable this by default once CORS preflight checks are supported.
|
||||
bool m_same_origin_policy_enabled { false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue