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
commit 4f36893fda
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00

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);
}