Prevent using favicon masks

pull/207/head
M66B 3 years ago
parent ae373ac337
commit 94ab24379c

@ -785,13 +785,15 @@ public class ContactInfo {
boolean isIco = (href.endsWith(".ico") || "image/x-icon".equals(type)); boolean isIco = (href.endsWith(".ico") || "image/x-icon".equals(type));
boolean isSvg = (href.endsWith(".svg") || "image/svg+xml".equals(type)); boolean isSvg = (href.endsWith(".svg") || "image/svg+xml".equals(type));
boolean isMask = ("mask-icon".equals(rel) || img.hasAttr("mask"));
// Safari: "mask-icon" if (isMask)
// "apple-touch-startup-image" order = -10; // Safari: "mask-icon"
if ("icon".equals(rel) && !isIco) else if ("icon".equals(rel) && !isIco)
order += 20; order += 20;
else if ("apple-touch-icon".equals(rel) || else if ("apple-touch-icon".equals(rel) ||
"apple-touch-icon-precomposed".equals(rel)) { "apple-touch-icon-precomposed".equals(rel)) {
// "apple-touch-startup-image"
if ("mailbox.org".equals(host)) if ("mailbox.org".equals(host))
order += 30; order += 30;
else else

Loading…
Cancel
Save