1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

Browser: Set 'webdriver-active flag' when creating a new Tab

This commit is contained in:
Linus Groh 2022-10-12 23:51:37 +02:00 committed by Andreas Kling
parent 3f24a444f9
commit 5681115744
3 changed files with 14 additions and 3 deletions

View file

@ -127,6 +127,9 @@ Tab::Tab(BrowserWindow& window)
m_web_content_view->set_proxy_mappings(g_proxies, g_proxy_mappings);
if (!g_web_driver_connection.is_null())
m_web_content_view->set_is_webdriver_active(true);
auto& go_back_button = toolbar.add_action(window.go_back_action());
go_back_button.on_context_menu_request = [&](auto&) {
if (!m_history.can_go_back())