diff --git a/src/app/webbrowser/Browser.qml b/src/app/webbrowser/Browser.qml index a4d2e17f6..c83e20574 100644 --- a/src/app/webbrowser/Browser.qml +++ b/src/app/webbrowser/Browser.qml @@ -94,7 +94,13 @@ Common.BrowserView { state.uniqueId = tab.uniqueId state.url = tab.url.toString() state.title = tab.title - state.icon = tab.icon.toString() + + if (UrlUtils.schemeIs(tab.icon, "image") && UrlUtils.hostIs(tab.icon, "favicon")) { + state.icon = tab.icon.toString().substring(("image://favicon/").length) + } else { + state.icon = tab.icon.toString() + } + state.preview = Qt.resolvedUrl(PreviewManager.previewPathFromUrl(tab.url)) state.savedState = tab.webview ? tab.webview.currentState : tab.restoreState return state