1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:28:11 +00:00

LibWeb+LibWebView+WebContent+Ladybird: Add IPC call that opens new tab

This commit is contained in:
Aliaksandr Kalenik 2023-03-14 17:12:09 +03:00 committed by Tim Flynn
parent 4717d645d3
commit a9f8d4eada
12 changed files with 32 additions and 0 deletions

View file

@ -59,6 +59,14 @@ void OutOfProcessWebView::handle_web_content_process_crash()
load_html(builder.to_deprecated_string(), m_url);
}
String OutOfProcessWebView::notify_request_open_new_tab(Badge<WebContentClient>)
{
if (on_new_tab)
return on_new_tab();
return {};
}
void OutOfProcessWebView::create_client()
{
m_client_state = {};