LibWeb+Browser: Support about: URL protocol so "about:blank" works :^)

For now, we simply load an empty resource from any about: URL.
This commit is contained in:
Andreas Kling 2020-05-10 11:13:36 +02:00
parent 56dbe58bbb
commit fe0de26277
Notes: sideshowbarker 2024-07-19 06:46:23 +09:00
3 changed files with 10 additions and 2 deletions

View file

@ -413,7 +413,7 @@ void HtmlView::load(const URL& url)
load_error_page(url, error);
});
if (url.protocol() != "file") {
if (url.protocol() != "file" && url.protocol() != "about") {
URL favicon_url;
favicon_url.set_protocol(url.protocol());
favicon_url.set_host(url.host());