mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Ladybird: Open target _blank links in new tab
This commit is contained in:
parent
05a2d1f0e0
commit
14c9ef2563
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/Coderdreams
Commit: 14c9ef2563
Pull-request: https://github.com/SerenityOS/serenity/pull/18001
Reviewed-by: https://github.com/linusg
3 changed files with 26 additions and 9 deletions
|
@ -778,19 +778,16 @@ void WebContentView::notify_server_did_unhover_link(Badge<WebContentClient>)
|
|||
|
||||
void WebContentView::notify_server_did_click_link(Badge<WebContentClient>, AK::URL const& url, DeprecatedString const& target, unsigned int modifiers)
|
||||
{
|
||||
// FIXME
|
||||
(void)url;
|
||||
(void)target;
|
||||
(void)modifiers;
|
||||
// if (on_link_click)
|
||||
// on_link_click(url, target, modifiers);
|
||||
if (on_link_click) {
|
||||
on_link_click(url, target, modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
void WebContentView::notify_server_did_middle_click_link(Badge<WebContentClient>, AK::URL const& url, DeprecatedString const& target, unsigned int modifiers)
|
||||
{
|
||||
(void)url;
|
||||
(void)target;
|
||||
(void)modifiers;
|
||||
if (on_link_middle_click) {
|
||||
on_link_middle_click(url, target, modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
void WebContentView::notify_server_did_start_loading(Badge<WebContentClient>, AK::URL const& url, bool is_redirect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue