Skip to content
This repository was archived by the owner on Dec 25, 2022. It is now read-only.

Commit 3cc6030

Browse files
Baitinqgunnarbeutner
authored andcommitted
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.
1 parent 57ef3e6 commit 3cc6030

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tab.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ Tab::Tab(BrowserWindow* window)
114114

115115
// FIXME: This is a hack to make the JS console usable in new windows.
116116
// Something else should ensure that there's an initial about:blank document loaded in the view.
117+
// We set m_is_history_navigation = true so that the initial about:blank doesn't get added to the history.
118+
m_is_history_navigation = true;
117119
m_view->load("about:blank"sv);
118120
}
119121

0 commit comments

Comments
 (0)