summaryrefslogtreecommitdiff
path: root/Ladybird/BrowserWindow.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-05-15 12:27:10 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-16 12:48:39 +0200
commit1b2394d92ee0e448f1772a516bc11fa6a58d2c7a (patch)
treefe6217c4ff64df8047c06089c5c44be7f0283a6f /Ladybird/BrowserWindow.cpp
parenta0e31bf1de51a8b6cc28c65debb72581f740b7e6 (diff)
downloadserenity-1b2394d92ee0e448f1772a516bc11fa6a58d2c7a.zip
Ladybird: Add a context menu for video elements
Diffstat (limited to 'Ladybird/BrowserWindow.cpp')
-rw-r--r--Ladybird/BrowserWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ladybird/BrowserWindow.cpp b/Ladybird/BrowserWindow.cpp
index 429e3fd7dd..cade50b40c 100644
--- a/Ladybird/BrowserWindow.cpp
+++ b/Ladybird/BrowserWindow.cpp
@@ -418,6 +418,8 @@ Tab& BrowserWindow::new_tab(QString const& url, Web::HTML::ActivateTab activate_
m_current_tab->view().on_tab_open_request(url, Web::HTML::ActivateTab::No);
} else if (target == "_blank") {
m_current_tab->view().on_tab_open_request(url, Web::HTML::ActivateTab::Yes);
+ } else {
+ m_current_tab->view().load(url);
}
};