Skip to content

PNG Generation on Firefox not working. #17

@imakshayverma

Description

@imakshayverma

Due to certain mozilla security features, the provision to download visualization as an image in not working on Mozilla Firefox.

The exception being generated when the CSS Styles of the elements are being read -
DOMException [SecurityError: "The operation is insecure."
code: 18

Possible insight into the problem -
"The implementation of SVG images is very restrictive. SVG images aren't allowed to load any external resources, for example, even ones that appear to be from the same domain. Resources such as raster images (such as JPEG images) or <iframe>s have to be inlined as data: URIs.

In addition, you can't include script in an SVG image, so there's no risk of access to the DOM from other scripts, and DOM elements in SVG images can't receive input events, so there's no way to load privileged information into a form control (such as a full path into a file element) and render it, then pull that information out by reading the pixels."

Source - MDN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions