Merge "Add MIME type for favicons to list of allowed image types."
This commit is contained in:
@@ -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, prefs, outputEl, baseImage, revisionImage) {
|
||||
GrDiffBuilderSideBySide.call(this, diff, prefs, outputEl, []);
|
||||
|
Reference in New Issue
Block a user