Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Fix favicon in tab chromes #508

Open
wants to merge 1 commit into
base: xenial
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/app/webbrowser/Browser.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down