Bug 1933158 - Prevent mask icons from being stored. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D230809
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user