mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-23 23:11:35 +00:00
gh-14470: Fixed wrong data image being used for sync (gh-15048)
This commit is contained in:
@@ -598,6 +598,11 @@ class nsZenSpacesSyncApplier {
|
||||
if (icon && syncableIconUrl(tab.getAttribute("image")) !== icon) {
|
||||
try {
|
||||
win.gBrowser.setIcon(tab, icon);
|
||||
// As on creation: an unloaded tab's cached session image would
|
||||
// otherwise override the icon set above at every collect.
|
||||
lazy.TabStateCache.update(tab.linkedBrowser.permanentKey, {
|
||||
image: null,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error("ZenSpacesSync: failed to set tab icon", e);
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ class nsZenSpacesSyncModel {
|
||||
if (!url || url === "about:blank") {
|
||||
return null;
|
||||
}
|
||||
const icon = syncableIconUrl(initial?.image || tabData.image || "");
|
||||
const icon = syncableIconUrl(tabData.image || initial?.image || "");
|
||||
return { url, title: title || "", icon };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user