mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-26 00:11:35 +00:00
gh-15084: Fixed incoming tab icons applying to active tabs (gh-15107)
This commit is contained in:
@@ -576,9 +576,11 @@ class nsZenSpacesSyncApplier {
|
||||
}
|
||||
}
|
||||
tab.zenStaticIcon = data.hasStaticIcon && icon ? icon : undefined;
|
||||
// Compare normalized: setIcon rewraps svg data: icons into
|
||||
// moz-remote-image urls when writing the attribute.
|
||||
if (icon && syncableIconUrl(tab.getAttribute("image")) !== icon) {
|
||||
if (
|
||||
icon &&
|
||||
(data.hasStaticIcon || !tab.linkedPanel) &&
|
||||
syncableIconUrl(tab.getAttribute("image")) !== icon
|
||||
) {
|
||||
try {
|
||||
win.gBrowser.setIcon(tab, icon);
|
||||
lazy.TabStateCache.update(tab.linkedBrowser.permanentKey, {
|
||||
|
||||
@@ -231,7 +231,11 @@ class nsZenSpacesSyncModel {
|
||||
if (!url || url === "about:blank") {
|
||||
return null;
|
||||
}
|
||||
const icon = syncableIconUrl(tabData.image || initial?.image || "");
|
||||
const icon = syncableIconUrl(
|
||||
(tabData.zenHasStaticIcon
|
||||
? tabData.image
|
||||
: initial?.image || tabData.image) || ""
|
||||
);
|
||||
return { url, title: title || "", icon };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user