[Webkit-unassigned] [Bug 18637] Creation of WebKit icon database causes data loss if ~/Library/Icons exists
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 20 22:08:09 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18637
------- Comment #3 from wootest+webkit at gmail.com 2008-04-20 22:08 PDT -------
I should note that my product contains the following workaround code in its
awakeFromNib method, which might be what triggers the bug:
// http://bugs.webkit.org/show_bug.cgi?id=16296 says:
// "Calling [WebIconDatabase sharedIconDatabase] is enough to
instantiate the
// global icon database, enable it, and result in icon loads. Slapping
that
// one-liner into your - (void)setupIconDatabase; method made it work.
//
// It really sucks that the only way to enable part of the API is to
use SPI
// (granted, very stable SPI that's been around forever) but the
alternative is to
// have the overhead of icon loads and multithreading for *all* WebKit
apps, which
// is entirely unacceptable."
@try {
Class webIconDatabaseClass =
NSClassFromString(@"WebIconDatabase");
if (webIconDatabaseClass != Nil) {
[webIconDatabaseClass
performSelector:@selector(sharedIconDatabase)];
}
} @catch (NSException *exc) {
#pragma unused(exc)
}
Without this code, I never got any icon delegate messages at all. (For more
details on that, see the bug referenced.)
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list