summaryrefslogtreecommitdiff
path: root/Ladybird/Tab.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-03-20 19:52:00 -0400
committerLinus Groh <mail@linusgroh.de>2023-03-21 09:39:49 +0000
commitf8b6369c238a57abb2fb3f5b093c5b629070e1f4 (patch)
tree7faaf422c0727e429f19c02fed969e928e39446a /Ladybird/Tab.cpp
parenta77daf77bdc44d8150f3da698dcf3aa1f4917347 (diff)
downloadserenity-f8b6369c238a57abb2fb3f5b093c5b629070e1f4.zip
WebContent+Everywhere: Add a WebContent IPC to activate a tab
Diffstat (limited to 'Ladybird/Tab.cpp')
-rw-r--r--Ladybird/Tab.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp
index 1c5ac9349f..3da6992bf0 100644
--- a/Ladybird/Tab.cpp
+++ b/Ladybird/Tab.cpp
@@ -64,6 +64,10 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path)
m_toolbar->addAction(m_home_action);
m_toolbar->addWidget(m_location_edit);
+ QObject::connect(m_view, &WebContentView::activate_tab, [this] {
+ m_window->activate_tab(tab_index());
+ });
+
QObject::connect(m_view, &WebContentView::close, [this] {
m_window->close_tab(tab_index());
});