mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Ladybird: Move the initial blank page load to BrowserWindow
Takes care of a FIXME :^)
This commit is contained in:
parent
5e89773937
commit
194ddca24f
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/krkk
Commit: 194ddca24f
Pull-request: https://github.com/SerenityOS/serenity/pull/16886
Reviewed-by: https://github.com/linusg
3 changed files with 15 additions and 13 deletions
|
@ -366,6 +366,14 @@ void BrowserWindow::new_tab()
|
|||
};
|
||||
|
||||
tab_ptr->focus_location_editor();
|
||||
|
||||
// This is a hack to make the JS console usable in new windows.
|
||||
// Note we *don't* load the initial page if we are connected to a WebDriver, as the Set URL command may come in very
|
||||
// quickly, and become replaced by this load.
|
||||
if (m_webdriver_content_ipc_path.is_empty()) {
|
||||
// We make it HistoryNavigation so that the initial page doesn't get added to the history.
|
||||
tab_ptr->navigate("about:blank", Tab::LoadType::HistoryNavigation);
|
||||
}
|
||||
}
|
||||
|
||||
void BrowserWindow::close_tab(int index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue