Bug 48566 - Icon database not properly loaded after launch
Summary: Icon database not properly loaded after launch
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 14:32 PDT by Christiaan Hofman
Modified: 2010-10-29 04:25 PDT (History)
1 user (show)

See Also:


Attachments
Simple WebKit based browser app using favicon in History menu (33.86 KB, application/zip)
2010-10-29 04:25 PDT, Christiaan Hofman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christiaan Hofman 2010-10-28 14:32:15 PDT
After I launch a client app for webkit that uses favicons from the database, e.g. through WebHistoryItem icon accessors, these icons are not available (i.e. the default 'globe' icon is always returned) after a relaunch of the client. Favicons that are loaded during the launch session are properly used, but not saved icons from the database. I have confirmed that the WebIconDatabaseEnabled pref is true, and that the WebIconDatabaseDirectoryDefaultsKey pref is set to the default "~/Library/Icons" (which BTW is the wrong thing to do), and that database file does get updated. I have also checked that -[WebIconDatabase _startUpIconDatabase] is indeed called, which measn that also iconDatabase()->setEnabled(true) iconDatabase()->open(databaseDirectory) are called. So the problem must be in WebCore somewhere.
Comment 1 Mark Rowe (bdash) 2010-10-29 02:25:52 PDT
As you can probably see from Safari, the icon database does work.  It would be significantly easier to investigate this if you were to provide a simple, standalone test application (with source) that demonstrated the problem.  That will allow us to determine if there is a bug in your use of the API or in WebKit itself.
Comment 2 Christiaan Hofman 2010-10-29 04:25:57 PDT
Created attachment 72313 [details]
Simple WebKit based browser app using favicon in History menu