Bug 57157 - [Qt] QWebFrame::iconChanged() not emitted when icon is cached but not yet loaded
Summary: [Qt] QWebFrame::iconChanged() not emitted when icon is cached but not yet loaded
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2011-03-26 11:43 PDT by Andreas Kling
Modified: 2011-03-26 12:30 PDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (10.44 KB, patch)
2011-03-26 11:49 PDT, Andreas Kling
kenneth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2011-03-26 11:43:21 PDT
If the page's icon is cached in the icon database, but has not been loaded from disk when WebCore asks for it, the QWebFrame::iconChanged() signal will not be emitted.

In this case, the FrameLoader asks the FrameLoaderClient to wait for a notification from the IconDatabase that it's finished loading the icon. This mechanism is currently absent in WebKit/qt/
Comment 1 Andreas Kling 2011-03-26 11:49:20 PDT
Created attachment 87033 [details]
Proposed patch
Comment 2 WebKit Review Bot 2011-03-26 11:50:11 PDT
Attachment 87033 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/qt/Api/qwebsettings.cpp', u'..." exit_code: 1

Source/WebKit/qt/WebCoreSupport/IconDatabaseClientQt.cpp:28:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Source/WebKit/qt/WebCoreSupport/IconDatabaseClientQt.h:31:  Header file should not contain WebCore config.h. Should be: alphabetically sorted.  [build/include_order] [4]
Total errors found: 2 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Kenneth Rohde Christiansen 2011-03-26 11:58:15 PDT
Comment on attachment 87033 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=87033&action=review

> Source/WebKit/qt/WebCoreSupport/IconDatabaseClientQt.cpp:61
> +void IconDatabaseClientQt::didRemoveAllIcons()
> +{
> +}

Why not add notImplemented() in these?
Comment 4 Andreas Kling 2011-03-26 12:00:22 PDT
(In reply to comment #3)
> (From update of attachment 87033 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=87033&action=review
> 
> > Source/WebKit/qt/WebCoreSupport/IconDatabaseClientQt.cpp:61
> > +void IconDatabaseClientQt::didRemoveAllIcons()
> > +{
> > +}
> 
> Why not add notImplemented() in these?

Because we don't want to do anything in these functions (for now, at least.) :)
Comment 5 Andreas Kling 2011-03-26 12:30:33 PDT
Landed in <http://trac.webkit.org/changeset/82034>.