mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibWeb: Load favicon.ico only for http/https URLs
This commit is contained in:
parent
021c8dea1f
commit
a0130b55d4
1 changed files with 4 additions and 1 deletions
|
@ -163,7 +163,10 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
|
|||
if (type == Type::Navigation)
|
||||
frame().page().client().page_did_start_loading(url);
|
||||
|
||||
if (type != Type::IFrame && url.protocol() != "file" && url.protocol() != "about") {
|
||||
if (type == Type::IFrame)
|
||||
return true;
|
||||
|
||||
if (url.protocol() == "http" || url.protocol() == "https") {
|
||||
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