зеркало из https://github.com/mozilla/pjs.git
Fix bug 306327: can't drag favicon for local files. Fix by Nick Kreeger, r=me.
This commit is contained in:
Родитель
31aa9d6e3c
Коммит
dd37a6d876
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче