LibWeb: Handle invalid URL in HtmlView::load()

This commit is contained in:
Linus Groh 2020-04-03 18:32:08 +01:00 committed by Andreas Kling
parent 520311eb8b
commit 07049f98ec
Notes: sideshowbarker 2024-07-19 07:58:28 +09:00

View File

@ -340,6 +340,11 @@ void HtmlView::load(const URL& url)
{
dbg() << "HtmlView::load: " << url.to_string();
if (!url.is_valid()) {
load_error_page(url, "Invalid URL");
return;
}
if (window())
window()->set_override_cursor(GUI::StandardCursor::None);