summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/fetchers/resource.c2
-rw-r--r--desktop/browser.c2
-rw-r--r--gtk/gui.c4
3 files changed, 6 insertions, 2 deletions
diff --git a/content/fetchers/resource.c b/content/fetchers/resource.c
index ff1c0af9b..77a25d36c 100644
--- a/content/fetchers/resource.c
+++ b/content/fetchers/resource.c
@@ -78,7 +78,7 @@ static const char *fetch_resource_paths[] = {
"quirks.css",
"credits.html",
"licence.html",
- "favicon.png",
+ "favicon.ico",
"netsurf.png"
};
static struct fetch_resource_map_entry {
diff --git a/desktop/browser.c b/desktop/browser.c
index f442809f9..e5142d88b 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -997,7 +997,7 @@ static void browser_window_update_favicon(hlcache_handle *c,
/* no favicon via link, try for the default location */
error = nsurl_join(nsurl, "/favicon.ico", &nsurl);
} else {
- error = nsurl_create("resource:favicon.png", &nsurl);
+ error = nsurl_create("resource:favicon.ico", &nsurl);
}
if (error != NSERROR_OK) {
LOG(("Unable to create default location url"));
diff --git a/gtk/gui.c b/gtk/gui.c
index e72b2fc8e..591eff425 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -327,6 +327,10 @@ nsurl *gui_get_resource_url(const char *path)
if (strcmp(path, "default.css") == 0)
path = "gtkdefault.css";
+ /* favicon.ico -> favicon.png */
+ if (strcmp(path, "favicon.ico") == 0)
+ path = "favicon.png";
+
raw = path_to_url(filepath_sfind(respaths, buf, path));
if (raw != NULL) {
nsurl_create(raw, &url);