Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: crash when saving edited PDF files #32512

Merged
merged 1 commit into from Jan 19, 2022
Merged

Conversation

codebytere
Copy link
Member

Description of Change

Closes #32476.

This commit fixes a crash that persists any time a user attempts to download an edited PDF. This was happening because the logic flow for download of any edited PDF triggers a call to chrome.fileSystem.chooseEntry, which we do not support and which cause unmapped page access crashes.

This patch can be removed should we choose to support chrome.fileSystem or support it enough to fix the crash.

Checklist

Release Notes

Notes: Fixed a crash that occurred when user attempted to download an edited PDF

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/15-x-y labels Jan 17, 2022
@codebytere codebytere requested a review from a team as a code owner January 17, 2022 22:56
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 17, 2022
Copy link
Contributor

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the patch needs an update to make sure fileName is defined before its referenced.

Copy link
Member

@nornagon nornagon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try upstreaming this? The chrome.fileSystem API is apparently deprecated, so upstream might be interested in help moving off it :)

@codebytere
Copy link
Member Author

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 18, 2022
@jkleinsc jkleinsc merged commit b89361a into main Jan 19, 2022
@jkleinsc jkleinsc deleted the fix-pdf-download-crash branch January 19, 2022 17:58
@release-clerk
Copy link

release-clerk bot commented Jan 19, 2022

Release Notes Persisted

Fixed a crash that occurred when user attempted to download an edited PDF

@trop
Copy link
Contributor

trop bot commented Jan 19, 2022

I have automatically backported this PR to "15-x-y", please check out #32537

@trop
Copy link
Contributor

trop bot commented Jan 19, 2022

I have automatically backported this PR to "16-x-y", please check out #32538

@trop trop bot removed the target/15-x-y label Jan 19, 2022
@trop
Copy link
Contributor

trop bot commented Jan 19, 2022

I have automatically backported this PR to "17-x-y", please check out #32539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Electron crashes when saving a PDF file with changes
5 participants