Firefox does not support drawing SVG images to canvas unless the svg file has width/height attributes on the root <svg>
element and those width/height attributes are not percentages. This is a longstanding bug.
You will need to edit the icon.svg file so it meets the above criteria.