Adjust tab height calculations and improve icon state handling in ZenStartup and ZenPinnedTabManager

This commit is contained in:
mr. M 2024-11-06 20:31:20 +01:00
parent 54f5042c3c
commit 6d5dcbe89f
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
3 changed files with 38 additions and 17 deletions

View file

@ -369,8 +369,10 @@
title: pin.title,
triggeringPrincipal_base64: lazy.E10SUtils.SERIALIZED_SYSTEMPRINCIPAL
}];
if (icon) {
if (icon instanceof Ci.nsIURI || typeof icon === "string") {
state.image = icon;
} else {
state.image = null;
}
state.index = 0;