From 0b5dcbfe10d63cfb0bb6e2d9457536fae83d55ae Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 15 Jul 2008 17:54:18 +0200 Subject: [PATCH] Recognize image/x-ico favicons as well --- midori/midori-webview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-webview.c b/midori/midori-webview.c index 5e12a44c..4a5a5e37 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -979,7 +979,8 @@ midori_web_view_get_icon (MidoriWebView* web_view) if (info) { content_type = g_file_info_get_content_type (info); - icon = !strcmp (content_type, "image/x-icon") + /* favicon.ico can be image/x-ico or image/x-icon */ + icon = !strcmp (content_type, "image/x-ico") ? g_file_icon_new (icon_file) : NULL; }