diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp index 3ea3c63635..affa174a7c 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -698,7 +699,8 @@ BrowsingContext::ChosenBrowsingContext BrowsingContext::choose_a_browsing_contex // 3. If noopener is true, then set chosen to the result of creating a new top-level browsing context. if (no_opener) { - chosen = HTML::BrowsingContext::create_a_new_top_level_browsing_context(*m_page); + auto handle = m_page->client().page_did_request_new_tab(); + chosen = RemoteBrowsingContext::create_a_new_remote_browsing_context(handle); } // 4. Otherwise: