Skip to content

fix: allow downloading files inside asar archives - #52828

Merged
MarshallOfSound merged 2 commits into
42-x-yfrom
trop/42-x-y-bp-fix-allow-downloading-files-inside-asar-archives-1786831150938
Aug 16, 2026
Merged

MarshallOfSound merged 2 commits into
42-x-yfrom
trop/42-x-y-bp-fix-allow-downloading-files-inside-asar-archives-1786831150938

Conversation

@trop

@trop trop Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Backport of #52808

See that PR for details.

Notes: Fixed downloading files that live inside an asar archive, including saving a packed PDF from the built-in PDF viewer.

trop Bot and others added 2 commits August 15, 2026 21:59
Downloads read file: URLs straight from disk through content's
FileURLLoaderFactory rather than Electron's asar-aware loader, so the
PDF viewer's Save on a packed PDF, and webContents.downloadURL() of any
packed file, failed with the virtual path not existing. Handle
WebContentsDelegate::SaveFrame() and translate downloadURL() so a file:
URL that points into an archive is downloaded from an extracted copy of
the entry, named after the entry.

Closes #49475.

Co-authored-by: Shelley Vohr <[email protected]>
Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested a review from codebytere August 15, 2026 21:59
@trop trop Bot mentioned this pull request Aug 15, 2026
4 tasks done
@trop trop Bot added 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Aug 15, 2026
@MarshallOfSound
MarshallOfSound merged commit 7dca27b into 42-x-y Aug 16, 2026
88 of 90 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/42-x-y-bp-fix-allow-downloading-files-inside-asar-archives-1786831150938 branch August 16, 2026 09:47
@release-clerk

release-clerk Bot commented Aug 16, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed downloading files that live inside an asar archive, including saving a packed PDF from the built-in PDF viewer.

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

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant