1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

Ladybird: Set initial page when NOT connected to WebDriver

This flips an if check condition, making the JS console work in new tabs
again.
This commit is contained in:
Karol Kosek 2023-01-19 18:46:47 +01:00 committed by Linus Groh
parent 5ac57f9d41
commit 4f36893fda

View file

@ -151,7 +151,7 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path)
//
// Note we *don't* do this if we are connected to a WebDriver, as the Set URL command may come in very
// quickly, and become replaced by this load.
if (!webdriver_content_ipc_path.is_empty()) {
if (webdriver_content_ipc_path.is_empty()) {
m_is_history_navigation = true;
m_view->load("about:blank"sv);
}