diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-06 20:00:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-06 20:00:56 +0200 |
commit | fd65a2483492dfd50cae61b613d9bd8ed95306b3 (patch) | |
tree | 994b02a5b583a6ad4bae3edc4908ab162bddd254 /Libraries/LibWeb/PageView.cpp | |
parent | 02c5e22f06dbe198fdc51eef488929518856d5c8 (diff) | |
download | serenity-fd65a2483492dfd50cae61b613d9bd8ed95306b3.zip |
LibWeb: Make the link context menu hook include the destination URL
Diffstat (limited to 'Libraries/LibWeb/PageView.cpp')
-rw-r--r-- | Libraries/LibWeb/PageView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/PageView.cpp b/Libraries/LibWeb/PageView.cpp index b55b185a18..b53f816951 100644 --- a/Libraries/LibWeb/PageView.cpp +++ b/Libraries/LibWeb/PageView.cpp @@ -201,10 +201,10 @@ void PageView::page_did_request_context_menu(const Gfx::IntPoint& content_positi on_context_menu_request(screen_relative_rect().location().translated(to_widget_position(content_position))); } -void PageView::page_did_request_link_context_menu(const Gfx::IntPoint& content_position, const String& href, [[maybe_unused]] const String& target, [[maybe_unused]] unsigned modifiers) +void PageView::page_did_request_link_context_menu(const Gfx::IntPoint& content_position, const URL& url, [[maybe_unused]] const String& target, [[maybe_unused]] unsigned modifiers) { if (on_link_context_menu_request) - on_link_context_menu_request(href, screen_relative_rect().location().translated(to_widget_position(content_position))); + on_link_context_menu_request(url, screen_relative_rect().location().translated(to_widget_position(content_position))); } void PageView::page_did_click_link(const URL& url, const String& target, unsigned modifiers) |