[Webkit-unassigned] [Bug 54024] [Qt] QWebSettings::iconForURL() returns NULL at first call

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 9 10:04:46 PST 2011


--- Comment #6 from Stephen <chaohydra at hotmail.com>  2011-02-09 10:04:46 PST ---
I am not sure it's always asynchronous. The 2nd or 3rd calls always get a valid icon if it's in the database. Maybe, there is some internal icon cache in the memory. The first call only loads it from the disk into the memory while later calls directly retrieve the icon from the memory cache. 

A synchronous return option would be great in this case. Otherwise, we should provide some callback signal to let developers know when the icon is ready. And this signal shouldn't come from QWebFrame since there are cases we want to use the icon outside a webkit view. 

Just sharing some thoughts. Thanks.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list