1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibWeb: Remove BrowsingContext::create_a_new_top_level_browsing_context

This call has been replaced by
`create_a_new_top_level_browsing_context_and_document`
after specification was refactored to use navigables.
This commit is contained in:
Aliaksandr Kalenik 2023-09-03 21:46:36 +02:00 committed by Andreas Kling
parent b90dd9d1f8
commit 7daa462ef8
5 changed files with 10 additions and 20 deletions

View file

@ -84,6 +84,12 @@ private:
WeakPtr<Page> m_page;
};
struct BrowsingContextAndDocument {
JS::NonnullGCPtr<HTML::BrowsingContext> browsing_context;
JS::NonnullGCPtr<DOM::Document> document;
};
WebIDL::ExceptionOr<BrowsingContextAndDocument> create_a_new_top_level_browsing_context_and_document(Page& page);
void finalize_a_same_document_navigation(JS::NonnullGCPtr<TraversableNavigable> traversable, JS::NonnullGCPtr<Navigable> target_navigable, JS::NonnullGCPtr<SessionHistoryEntry> target_entry, JS::GCPtr<SessionHistoryEntry> entry_to_replace);
}