-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
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 (?)