mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +00:00
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:
parent
56dbe58bbb
commit
fe0de26277
Notes:
sideshowbarker
2024-07-19 06:46:23 +09:00
Author: https://github.com/awesomekling
Commit: fe0de26277
3 changed files with 10 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue