Skip to content

Offline exporting: workaround for previous browser bugs no longer needed #12169

@Tankzor

Description

@Tankzor

Highcharts.svgToDataUrl (modules/offline-exporting.src.ts)

Expected behaviour

A CSP blocking "data:" scheme for img-src would still allow image export via "blob:"

Actual behaviour

Export fails in Firefox and (presumably) Safari, due to a workaround put in place for previous browser bugs.

// Safari requires data URI since it doesn't allow navigation to blob
// URLs. Firefox has an issue with Blobs and internal references,
// leading to gradients not working using Blobs (#4550)

Previous issue #4550 highlighted an issue with Firefox not handling internal references correctly, workaround was to fallback to "data:".

This has subsequently been fixed in Firefox. Related bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=841920
https://bugzilla.mozilla.org/show_bug.cgi?id=1280584
https://bugzilla.mozilla.org/show_bug.cgi?id=1447262

Also, there's a workaround in there for Safari with comment saying Safari does not allow navigation to "blob:", which I believe is also fixed (based on discussion in this issue, but I don't have a mac to check): https://bugs.webkit.org/show_bug.cgi?id=102914

Affected browser(s)

Firefox & Safari (?)

Metadata

Metadata

Assignees

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