diff options
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index a4a8bbe23..0bed6b038 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -592,6 +592,16 @@ QDateTime WebContentsAdapter::getNavigationEntryTimestamp(int index) return entry ? toQt(entry->GetTimestamp()) : QDateTime(); } +QUrl WebContentsAdapter::getNavigationEntryIconUrl(int index) +{ + Q_D(WebContentsAdapter); + content::NavigationEntry *entry = d->webContents->GetController().GetEntryAtIndex(index); + if (!entry) + return QUrl(); + content::FaviconStatus favicon = entry->GetFavicon(); + return favicon.valid ? toQt(favicon.url) : QUrl(); +} + void WebContentsAdapter::clearNavigationHistory() { Q_D(WebContentsAdapter); |