mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
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:
parent
e9135583bd
commit
0a8c86a9d9
Notes:
sideshowbarker
2024-07-17 02:41:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0a8c86a9d9 Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/linusg
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user