Add MIME type for favicons to list of allowed image types.
Also added a comment with a warning about SVG
Change-Id: I226dfddbb19a0d8f2a8ea45748e6db7eff2fe6d7
(cherry picked from commit c93d71c545)
This commit is contained in:
committed by
David Pursehouse
parent
673ead8d11
commit
f070777f89
@@ -20,7 +20,9 @@
|
||||
// Prevent redefinition.
|
||||
if (window.GrDiffBuilderImage) { return; }
|
||||
|
||||
const IMAGE_MIME_PATTERN = /^image\/(bmp|gif|jpeg|jpg|png|tiff|webp)$/;
|
||||
// MIME types for images we allow showing. Do not include SVG, it can contain
|
||||
// arbitrary JavaScript.
|
||||
const IMAGE_MIME_PATTERN = /^image\/(bmp|gif|x-icon|jpeg|jpg|png|tiff|webp)$/;
|
||||
|
||||
function GrDiffBuilderImage(diff, comments, createThreadGroupFn, prefs,
|
||||
outputEl, baseImage, revisionImage) {
|
||||
|
||||
Reference in New Issue
Block a user