Ladybird: Load about:blank in new tabs

This makes the JS console usable in new tabs, without having to load
something first.
This commit is contained in:
Andreas Kling 2022-10-07 13:35:40 +02:00 committed by Andrew Kaster
parent e9135583bd
commit 0a8c86a9d9

View file

@ -97,6 +97,10 @@ Tab::Tab(BrowserWindow* window)
text_edit->setPlainText(source);
text_edit->show();
});
// 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.
m_view->load("about:blank"sv);
}
void Tab::focus_location_editor()