mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00
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:
parent
17df6d9066
commit
d5b805a6e4
@ -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:" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user