mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00: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: 0a8c86a9d9
Pull-request: https://github.com/SerenityOS/serenity/pull/16583
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue