[Webkit-unassigned] [Bug 29440] New: [Qt] QWebSettings::iconForUrl() does not return a valid icon
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 18 07:49:10 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29440
Summary: [Qt] QWebSettings::iconForUrl() does not return a
valid icon
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Mac OS X 10.5
Status: NEW
Keywords: Qt
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: vestbo at webkit.org
This bug report originated from issue QTBUG-4323
<http://bugreports.qt.nokia.com/browse/QTBUG-4323>
--- Description ---
QWebSettings::iconForUrl() return a default icon or an invalid icon. Depending
on the icon database, no icon is returned or the icon do not correspond to the
website.
Here is an example to reproduce the problem, after closing the webview, the
button should appear with the image of a penguin:
int main(int argc, char **argv){
QApplication app(argc, argv);
QWebView view;
view.load(QUrl("http://www.linuxcertif.com/"));
view.show();
app.exec();
QWebSettings::setIconDatabasePath("/tmp");
QWebSettings::iconForUrl(QUrl("http://www.linuxcertif.com/"));
QIcon icon = QWebSettings::iconForUrl(QUrl("http://www.linuxcertif.com/"));
QPushButton button;
button.setIcon(icon);
button.show();
return app.exec();
}
--
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