mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Load favicon.ico only for http/https URLs
This commit is contained in:
parent
021c8dea1f
commit
a0130b55d4
Notes:
sideshowbarker
2024-07-19 01:32:23 +09:00
Author: https://github.com/bcoles Commit: https://github.com/SerenityOS/serenity/commit/a0130b55d44 Pull-request: https://github.com/SerenityOS/serenity/pull/3977
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
Reference in a new issue