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

LibWeb: Create a new WebView for window.open()'d top level traversables

This commit is contained in:
Andrew Kaster 2024-01-30 20:55:24 -07:00 committed by Tim Flynn
parent 677bdc2a4f
commit adb5c27331
5 changed files with 42 additions and 9 deletions

View file

@ -82,6 +82,9 @@ public:
Page& page() { return m_page; }
Page const& page() const { return m_page; }
String window_handle() const { return m_window_handle; }
void set_window_handle(String window_handle) { m_window_handle = move(window_handle); }
private:
TraversableNavigable(JS::NonnullGCPtr<Page>);
@ -114,6 +117,8 @@ private:
SessionHistoryTraversalQueue m_session_history_traversal_queue;
JS::NonnullGCPtr<Page> m_page;
String m_window_handle;
};
struct BrowsingContextAndDocument {