mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +00:00
AK: Fix URL's operator<<() and use it
This commit is contained in:
parent
b299c75d45
commit
ad3871b64e
Notes:
sideshowbarker
2024-07-19 06:36:09 +09:00
Author: https://github.com/linusg
Commit: ad3871b64e
Pull-request: https://github.com/SerenityOS/serenity/pull/2253
Issue: https://github.com/SerenityOS/serenity/issues/2250
3 changed files with 6 additions and 8 deletions
|
@ -433,7 +433,7 @@ static RefPtr<Document> create_document_from_mime_type(const ByteBuffer& data, c
|
|||
|
||||
void HtmlView::load(const URL& url)
|
||||
{
|
||||
dbg() << "HtmlView::load: " << url.to_string();
|
||||
dbg() << "HtmlView::load: " << url;
|
||||
|
||||
if (!url.is_valid()) {
|
||||
load_error_page(url, "Invalid URL");
|
||||
|
@ -495,11 +495,11 @@ void HtmlView::load(const URL& url)
|
|||
ResourceLoader::the().load(
|
||||
favicon_url,
|
||||
[this, favicon_url](auto data, auto&) {
|
||||
dbg() << "Favicon downloaded, " << data.size() << " bytes from " << favicon_url.to_string();
|
||||
dbg() << "Favicon downloaded, " << data.size() << " bytes from " << favicon_url;
|
||||
auto decoder = Gfx::ImageDecoder::create(data.data(), data.size());
|
||||
auto bitmap = decoder->bitmap();
|
||||
if (!bitmap) {
|
||||
dbg() << "Could not decode favicon " << favicon_url.to_string();
|
||||
dbg() << "Could not decode favicon " << favicon_url;
|
||||
return;
|
||||
}
|
||||
dbg() << "Decoded favicon, " << bitmap->size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue