|
@@ -284,9 +284,7 @@ bool EventHandler::handle_mouseup(CSSPixelPoint position, CSSPixelPoint screen_p
|
|
|
auto href = link->href();
|
|
|
auto url = document->parse_url(href);
|
|
|
dbgln("Web::EventHandler: Clicking on a link to {}", url);
|
|
|
- if (button == GUI::MouseButton::Primary) {
|
|
|
- MUST(document->navigable()->navigate({ .url = url, .source_document = document }));
|
|
|
- } else if (button == GUI::MouseButton::Middle) {
|
|
|
+ if (button == GUI::MouseButton::Middle) {
|
|
|
if (auto* page = m_browsing_context->page())
|
|
|
page->client().page_did_middle_click_link(url, link->target(), modifiers);
|
|
|
} else if (button == GUI::MouseButton::Secondary) {
|