diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-05-15 12:48:46 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-16 12:48:39 +0200 |
commit | 0d1b5e7f7a1c093b15b6de47aec7616064ead897 (patch) | |
tree | e7c937b90a28110a30fbf43401bb6404887eced6 /Ladybird/WebContentView.cpp | |
parent | 1b2394d92ee0e448f1772a516bc11fa6a58d2c7a (diff) | |
download | serenity-0d1b5e7f7a1c093b15b6de47aec7616064ead897.zip |
Ladybird: Add a context menu for link elements
Diffstat (limited to 'Ladybird/WebContentView.cpp')
-rw-r--r-- | Ladybird/WebContentView.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 82e63faecb..829d66326b 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -872,9 +872,8 @@ void WebContentView::notify_server_did_request_context_menu(Badge<WebContentClie void WebContentView::notify_server_did_request_link_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position, AK::URL const& url, DeprecatedString const&, unsigned) { - // FIXME - (void)content_position; - (void)url; + if (on_link_context_menu_request) + on_link_context_menu_request(url, to_widget(content_position)); } void WebContentView::notify_server_did_request_image_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position, AK::URL const& url, DeprecatedString const&, unsigned, Gfx::ShareableBitmap const& bitmap) |