Fix support of SVG documents in Firefox

CLA signed