WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
112080
FrameLoader::didChangeIcons isn't called when the favicon is changed.
https://bugs.webkit.org/show_bug.cgi?id=112080
Summary
FrameLoader::didChangeIcons isn't called when the favicon is changed.
David Levin
Reported
2013-03-11 16:55:42 PDT
In Document::addIconURL, the check against iconURL fails. IconURL iconURL = f->loader()->icon()->iconURL(iconType); if (iconURL == newURL) This is because IconController::iconURL as of
http://trac.webkit.org/changeset/122806
returns the least favored favicon as opposed to the most favored. A simple fix is the change the if in IconController::iconURL from if (result.m_iconURL.isEmpty() || !iter->m_mimeType.isEmpty()) to if (result.m_iconURL.isEmpty() || (result->m_mimeType.isEmpty() && !iter->m_mimeType.isEmpty()) { so that the result is only set if it is empty or if it can be updated to have a mimeType when it doesn't already have one. Related: As of
r122806
, caching m_iconURLs doesn't really do anything, so we should consider removing it (but that may take more work because it is returned by reference at the moment).
Attachments
Patch
(4.99 KB, patch)
2013-03-19 14:46 PDT
,
David Levin
no flags
Details
Formatted Diff
Diff
Patch
(5.20 KB, patch)
2013-03-19 16:54 PDT
,
David Levin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
David Levin
Comment 1
2013-03-13 13:34:56 PDT
It turns out that it is hard for webkit to determine what favicon will be used by the host so the filtering "if (iconURL == newURL)" ideally wouldn't be done at all and the host would have to figure out if the event is relevant or not. Of course, it may not be ideal to send a bunch of events if there is a batch of favicon being processed so that should likely be coalesced into one notification.
David Levin
Comment 2
2013-03-19 14:46:46 PDT
Created
attachment 193928
[details]
Patch
Build Bot
Comment 3
2013-03-19 15:56:01 PDT
Comment on
attachment 193928
[details]
Patch
Attachment 193928
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-commit-queue.appspot.com/results/17252116
David Levin
Comment 4
2013-03-19 16:54:09 PDT
Created
attachment 193951
[details]
Patch
WebKit Review Bot
Comment 5
2013-03-19 18:12:00 PDT
Comment on
attachment 193951
[details]
Patch Clearing flags on attachment: 193951 Committed
r146284
: <
http://trac.webkit.org/changeset/146284
>
WebKit Review Bot
Comment 6
2013-03-19 18:12:03 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug