ewk_settings_icon_database_path_set calls asynchronous method WebCore::iconDatabase().open(). There is no notification when the new path is set by WebCore. Moreover ewk_settings_icon_database_path_set keeps the new path in a local variable. To retrieve path to icon database ewk_settings_icon_database_path_get can be called. It first checks flags whether icon databse is opened and enabled. There is possibility that icon database has been set through API but it hasn't been opened by WebCore yet. So as a result ewk_settings_icon_database_path_get returns NULL because WebCore hasn't set an appropriate flag yet. It may happen while icon database set/get sequences. Information whether icon database is opened/enabled should be exposed by separate API.
Created attachment 134275 [details] proposed patch skip checking whether icon database is opened and enabled to get icon database path
Created attachment 134282 [details] rebased patch
Hi Lucas, Could you review this patch? I think those checks are no longer needed. WebKit-Gtk doesn't check them when the data base path is being gotten.
Comment on attachment 134282 [details] rebased patch Certainly looks more correct this way. r=me
Comment on attachment 134282 [details] rebased patch Clearing flags on attachment: 134282 Committed r116302: <http://trac.webkit.org/changeset/116302>
All reviewed patches have been landed. Closing bug.