mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Ladybird: Implement notify_request_open_new_tab
This commit is contained in:
parent
a9f8d4eada
commit
640864b32e
Notes:
sideshowbarker
2024-07-17 07:08:37 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 640864b32e
Pull-request: https://github.com/SerenityOS/serenity/pull/17855
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/trflynn89 ✅
4 changed files with 13 additions and 2 deletions
|
@ -977,6 +977,9 @@ void WebContentView::notify_server_did_close_browsing_context(Badge<WebContentCl
|
|||
|
||||
String WebContentView::notify_request_open_new_tab(Badge<WebContentClient>)
|
||||
{
|
||||
if (on_new_tab)
|
||||
return on_new_tab();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue