Bug
PNG download and image copy fail in Firefox with the error:
Failed to generate image: TypeError: can't access property "trim", e is undefined
Location
frontend/src/components/Playground/ShareDialog.tsx - generateImage() function
frontend/src/components/LogShareDialog.tsx - generateImage() function
Both use html-to-image's toPng() which has known Firefox compatibility issues.
Likely causes
- CSS properties Firefox doesn't handle well during canvas conversion
- Fonts not being loaded/embedded properly
- Certain SVG or pseudo-elements in
ShareableCard
Possible solutions
- Debug which element/style causes the issue
- Try
html2canvas as an alternative
- Add Firefox-specific fallback or error messaging
- Investigate
ShareableCard for problematic elements
Workaround
Users can take a screenshot manually in Firefox.
Bug
PNG download and image copy fail in Firefox with the error:
Location
frontend/src/components/Playground/ShareDialog.tsx-generateImage()functionfrontend/src/components/LogShareDialog.tsx-generateImage()functionBoth use
html-to-image'stoPng()which has known Firefox compatibility issues.Likely causes
ShareableCardPossible solutions
html2canvasas an alternativeShareableCardfor problematic elementsWorkaround
Users can take a screenshot manually in Firefox.