Fix bug 306327: can't drag favicon for local files. Fix by Nick Kreeger, r=me.

This commit is contained in:
smfr%smfr.org 2005-09-10 03:41:53 +00:00
Родитель 31aa9d6e3c
Коммит dd37a6d876
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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"];

Просмотреть файл

@ -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];