diff --git a/background_scripts/completion.js b/background_scripts/completion.js index e97b0b356..b4bd962b9 100644 --- a/background_scripts/completion.js +++ b/background_scripts/completion.js @@ -47,6 +47,7 @@ class Suggestion { // The generated HTML string for showing this suggestion in the Vomnibar. html; searchUrl; + favIconUrl; constructor(options) { Object.seal(this); @@ -77,8 +78,9 @@ class Suggestion { if (this.description === "tab" && !BgUtils.isFirefox()) { const faviconUrl = new URL(chrome.runtime.getURL("/_favicon/")); faviconUrl.searchParams.set("pageUrl", this.url); - faviconUrl.searchParams.set("size", "16"); - faviconHtml = ``; + faviconUrl.searchParams.set("size", "64"); + const src = this.favIconUrl?.startsWith("http") ? this.favIconUrl : faviconUrl.toString(); + faviconHtml = ``; } if (this.isCustomSearch) { this.html = `\ @@ -489,6 +491,7 @@ class TabCompleter { queryTerms, description: "tab", url: tab.url, + favIconUrl: tab.favIconUrl, title: tab.title, tabId: tab.id, deDuplicate: false, diff --git a/pages/vomnibar.css b/pages/vomnibar.css index 70e0a01be..e998a167b 100644 --- a/pages/vomnibar.css +++ b/pages/vomnibar.css @@ -86,6 +86,7 @@ #vomnibar li .vomnibarIcon { padding: 0 13px 0 6px; vertical-align: bottom; + width: 16px; } #vomnibar li .vomnibarSource {