Bug 1933158 - Prevent mask icons from being stored. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D230809
This commit is contained in:
Yazan Al Macki
2024-12-06 18:35:07 +00:00
parent 5ca9fcb235
commit dc9a3fb47b
2 changed files with 4 additions and 4 deletions

View File

@@ -112,8 +112,8 @@ export class LinkHandlerChild extends JSWindowActorChild {
isRichIcon = true; isRichIcon = true;
// fall through // fall through
case "icon": case "icon":
if (iconAdded || link.hasAttribute("mask")) { if (iconAdded || link.hasAttribute("color") || rel.includes("mask")) {
// Masked icons are not supported yet. // TODO (Bug 1337397): Add support for mask-icon favicons.
break; break;
} }

View File

@@ -3,8 +3,8 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>Mask Icon</title> <title>Mask Icon</title>
<link rel="icon" mask href="moz.png" type="image/png" /> <link rel="shortcut icon" href="moz.png" type="image/png" color="#101010">
<link rel="mask-icon" href="moz.png" type="image/png" /> <link rel="icon mask-icon" href="moz.png" type="image/png" />
</head> </head>
<body> <body>
</body> </body>