Bug 1692623 - When loading a search engine icon, if it is not an image/ content type then ignore it. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D105483
This commit is contained in:
Mark Banner 2021-02-18 18:38:28 +00:00
parent 17df6d9066
commit d5b805a6e4

View File

@ -792,7 +792,11 @@ class SearchEngine {
}
if (!contentType.startsWith("image/")) {
contentType = "image/x-icon";
logConsole.info(
"Unable to set icon, content type is not an image",
contentType
);
return;
}
let dataURL =
"data:" +