mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
LibWeb: Handle invalid URL in HtmlView::load()
This commit is contained in:
parent
520311eb8b
commit
07049f98ec
1 changed files with 5 additions and 0 deletions
|
@ -340,6 +340,11 @@ void HtmlView::load(const URL& url)
|
||||||
{
|
{
|
||||||
dbg() << "HtmlView::load: " << url.to_string();
|
dbg() << "HtmlView::load: " << url.to_string();
|
||||||
|
|
||||||
|
if (!url.is_valid()) {
|
||||||
|
load_error_page(url, "Invalid URL");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (window())
|
if (window())
|
||||||
window()->set_override_cursor(GUI::StandardCursor::None);
|
window()->set_override_cursor(GUI::StandardCursor::None);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue