Skip to content

Fix PDF preview in Firefox/Waterfox#3

Merged
H1D merged 1 commit intomainfrom
fix/firefox-pdf-preview
Feb 21, 2026
Merged

Fix PDF preview in Firefox/Waterfox#3
H1D merged 1 commit intomainfrom
fix/firefox-pdf-preview

Conversation

@H1D
Copy link
Owner

@H1D H1D commented Feb 20, 2026

Summary

  • Switched PDF preview iframe from blob URL (URL.createObjectURL) to data URL (jsPDF.output('dataurlstring'))
  • Firefox-based browsers (Firefox, Waterfox) treat blob URLs with PDF MIME type as downloads instead of inline content, leaving the preview empty
  • Data URLs are rendered inline consistently across all browsers

Fixes #1


Deploy Preview: https://69988b61498b2f6cc2e933cf--easypdf-lite.netlify.app

Use data URL (jsPDF dataurlstring) instead of blob URL for the preview
iframe. Firefox-based browsers treat blob URLs with PDF content as
downloads rather than inline content, causing the preview to be empty.

Fixes #1
@H1D H1D force-pushed the fix/firefox-pdf-preview branch from e0f9ba9 to 1ac2a55 Compare February 20, 2026 16:26
@H1D H1D merged commit 469d1ec into main Feb 21, 2026
3 checks passed
@H1D H1D deleted the fix/firefox-pdf-preview branch February 21, 2026 20:20
@eshutoff
Copy link

eshutoff commented Feb 23, 2026

Excuse me for delay.
Waterfox 6.6.8 (64-bit), default action for PDF - Save File (checked with all others like Open in Waterfox etc):

  1. the same issue if I go by the provided link, as well by this link: https://h1d.github.io/easypdf-lite/
  2. the latest self-hosted doesn't have it, but the preview window is empty (ghcr.io/h1d/easypdf-lite:latest)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

downloading instead of preview

2 participants