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

Ladybird: Don't add initial about:blank load to history

The hackish initial loading of about:blank was previously added to the
history, so you could go back to it (which wasn't very ergonomic). Now
we set the m_is_history_navigation flag before loading it so it doesn't
get added to the history.
This commit is contained in:
Baitinq 2022-11-09 13:26:40 +01:00 committed by Andrew Kaster
parent 5d0ab45ff4
commit 15e4d151c3

View file

@ -114,6 +114,8 @@ Tab::Tab(BrowserWindow* window)
// FIXME: This is a hack to make the JS console usable in new windows.
// Something else should ensure that there's an initial about:blank document loaded in the view.
// We set m_is_history_navigation = true so that the initial about:blank doesn't get added to the history.
m_is_history_navigation = true;
m_view->load("about:blank"sv);
}