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:
parent
4717d645d3
commit
a9f8d4eada
12 changed files with 32 additions and 0 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue