[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 04:30:30 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=54024
Benjamin Poulain <benjamin.poulain at nokia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|QWebSettings::iconForURL() |[Qt]
|returns NULL at first call |QWebSettings::iconForURL()
| |returns NULL at first call
Platform|PC |All
OS/Version|Windows 7 |All
Status|UNCONFIRMED |NEW
Keywords| |Qt, QtTriaged
CC| |benjamin.poulain at nokia.com
Ever Confirmed|0 |1
--- Comment #1 from Benjamin Poulain <benjamin.poulain at nokia.com> 2011-02-09 04:30:30 PST ---
If I remember correctly, the WebKit code under QWebSettings::iconForURL() is asynchronous, and we present it as a synchronous API which fails when the data is not available.
I think the only way to get the icon systematically is to wait for the signal QWebFrame::iconChanged().
We should find a way to improve this or change the documentation. Devs are reporting problems regularily about QWebSettings::iconForUrl().
--
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