1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

Browser+WebContent+WebDriver: Move Get Title to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 13:50:43 -05:00 committed by Linus Groh
parent 7f142745e2
commit 2c9549cb76
9 changed files with 18 additions and 27 deletions

View file

@ -27,12 +27,4 @@ void WebDriverConnection::quit()
browser_window->close();
}
Messages::WebDriverSessionClient::GetTitleResponse WebDriverConnection::get_title()
{
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_title");
if (auto browser_window = m_browser_window.strong_ref())
return { browser_window->active_tab().title() };
return { "" };
}
}