diff options
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r-- | src/core/web_contents_delegate_qt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp index 26da6348a..4fe877e67 100644 --- a/src/core/web_contents_delegate_qt.cpp +++ b/src/core/web_contents_delegate_qt.cpp @@ -289,6 +289,9 @@ void WebContentsDelegateQt::DidUpdateFaviconURL(const std::vector<content::Favic faviconCandidates.append(toFaviconInfo(candidate)); } + // Favicon URL can be changed from JavaScript too. Thus we need to reset + // the current candidate icon list to not handle previous icon as a candidate. + m_faviconManager->resetCandidates(); m_faviconManager->update(faviconCandidates); } |