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 on custom printing margins #22164

Merged
merged 1 commit into from Feb 13, 2020
Merged

fix: crash on custom printing margins #22164

merged 1 commit into from Feb 13, 2020

Conversation

codebytere
Copy link
Member

Description of Change

Closes #21167.

Chromium changed their margin key settings such that custom margins should be set as their own dictionary, and without that will fail conversion validation and crash. This fixes that.

cc @zcbenz @deepak1556 @nornagon

Checklist

Release Notes

Notes: Fixed a crash in webContents.print() with custom print margins.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 12, 2020
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

LGTM, I believe all these validation crash cases are going to be covered in #22049 ?

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 13, 2020
@ckerr ckerr merged commit 6ed396d into master Feb 13, 2020
@release-clerk
Copy link

release-clerk bot commented Feb 13, 2020

Release Notes Persisted

Fixed a crash in webContents.print() with custom print margins.

@ckerr ckerr deleted the fix-printing-margins branch February 13, 2020 17:15
@trop
Copy link
Contributor

trop bot commented Feb 13, 2020

I was unable to backport this PR to "8-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Feb 13, 2020

I was unable to backport this PR to "7-1-x" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Feb 13, 2020

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

@trop
Copy link
Contributor

trop bot commented Feb 13, 2020

@codebytere has manually backported this PR to "8-x-y", please check out #22186

@trop
Copy link
Contributor

trop bot commented Feb 13, 2020

@codebytere has manually backported this PR to "7-1-x", please check out #22187

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.

Crash when print with 'margins' option
5 participants