From dd37a6d876bd2de47c43a0a373325b6409832dc0 Mon Sep 17 00:00:00 2001 From: "smfr%smfr.org" Date: Sat, 10 Sep 2005 03:41:53 +0000 Subject: [PATCH] Fix bug 306327: can't drag favicon for local files. Fix by Nick Kreeger, r=me. --- camino/src/application/MainController.mm | 1 + camino/src/browser/SiteIconProvider.mm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/camino/src/application/MainController.mm b/camino/src/application/MainController.mm index 6895b4756b9..aa44963e509 100644 --- a/camino/src/application/MainController.mm +++ b/camino/src/application/MainController.mm @@ -294,6 +294,7 @@ const int kReuseWindowOnAE = 2; // register some special favicon images [[SiteIconProvider sharedFavoriteIconProvider] registerFaviconImage:[NSImage imageNamed:@"smallDocument"] forPageURI:@"about:blank"]; + [[SiteIconProvider sharedFavoriteIconProvider] registerFaviconImage:[NSImage imageNamed:@"smallDocument"] forPageURI:@"about:local_file"]; [[SiteIconProvider sharedFavoriteIconProvider] registerFaviconImage:[NSImage imageNamed:@"bm_favicon"] forPageURI:@"about:bookmarks"]; [[SiteIconProvider sharedFavoriteIconProvider] registerFaviconImage:[NSImage imageNamed:@"historyicon"] forPageURI:@"about:history"]; diff --git a/camino/src/browser/SiteIconProvider.mm b/camino/src/browser/SiteIconProvider.mm index ddffb3d4288..ff554018240 100644 --- a/camino/src/browser/SiteIconProvider.mm +++ b/camino/src/browser/SiteIconProvider.mm @@ -577,7 +577,7 @@ MakeFaviconURIFromURI(const nsAString& inURIString, nsAString& outFaviconURI) // show small file icon for local files (this assumes that someone has // registered the blank document icon for "about:blank") if ([inURI compare:@"file://" options:NSCaseInsensitiveSearch range:NSMakeRange(0, 7)] == NSOrderedSame) - return @"about:blank"; + return @"about:local_file"; nsAutoString uriString; [inURI assignTo_nsAString:uriString];