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: validate printToPDF margins against pageSize #41266

Merged
merged 1 commit into from Feb 8, 2024
Merged

Conversation

codebytere
Copy link
Member

Backport of #41157.

See that PR for details.

Notes: Fixes an issue where webContents.printToPDF could fail when certain combinations of margins and pageSize values are passed.

fix: validate margins against pageSize
@codebytere codebytere requested a review from a team February 7, 2024 18:02
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 7, 2024
@trop trop bot added 29-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Feb 7, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 7, 2024
@zcbenz zcbenz merged commit 288ec2e into 29-x-y Feb 8, 2024
22 checks passed
@zcbenz zcbenz deleted the validate-margins-29 branch February 8, 2024 02:15
Copy link

release-clerk bot commented Feb 8, 2024

Release Notes Persisted

Fixes an issue where webContents.printToPDF could fail when certain combinations of margins and pageSize values are passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
29-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.

None yet

2 participants