diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-10 11:13:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-10 11:14:30 +0200 |
commit | fe0de26277f66ef8c0abadf4ef5a01df4448a11c (patch) | |
tree | a6c366c54d18133992ac9ece85b37c80fcc1d97a /Applications | |
parent | 56dbe58bbb97a0c7d5416ce16094ccbbf2efe0a6 (diff) | |
download | serenity-fe0de26277f66ef8c0abadf4ef5a01df4448a11c.zip |
LibWeb+Browser: Support about: URL protocol so "about:blank" works :^)
For now, we simply load an empty resource from any about: URL.
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/Browser/Tab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index c0653feccc..4ce198a216 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -100,7 +100,7 @@ Tab::Tab() m_location_box->on_return_pressed = [this] { String location = m_location_box->text(); - if (!location.starts_with("file://") && !location.starts_with("http://") && !location.starts_with("https://")) { + if (!URL(location).is_valid()) { StringBuilder builder; builder.append("http://"); builder.append(location); |