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: carry through arguments in webContents.print() #17052

Merged
merged 1 commit into from Feb 25, 2019
Merged

fix: carry through arguments in webContents.print() #17052

merged 1 commit into from Feb 25, 2019

Conversation

Thomas101
Copy link
Contributor

@Thomas101 Thomas101 commented Feb 19, 2019

Description of Change

Fix for #16792

webContents.print() doesn't deserialize arguments correctly, and doesn't initialize the silent argument correctly. This had the side-effect of webContents.print() only sometimes working and always ignoring passed arguments.

Checklist

Release Notes

Notes: Fixed webContents.print() not working correctly.

@tomnielsen
Copy link

Should we try to unstick this code review. Looks like the built-test failure might be related to something else?

Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

The fixed rest arguments look good to me, and so does the initialization of silent.

cc @deepak1556 for a second confirmation since you've spent more time in print-related code?

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.

Thanks!

@codebytere codebytere merged commit 1674388 into electron:master Feb 25, 2019
@release-clerk
Copy link

release-clerk bot commented Feb 25, 2019

Release Notes Persisted

Fixed webContents.print() not working correctly.

@welcome
Copy link

welcome bot commented Feb 25, 2019

Congrats on merging your first pull request! 🎉🎉🎉

@trop
Copy link
Contributor

trop bot commented Feb 25, 2019

I have automatically backported this PR to "4-0-x", please check out #17116

@trop trop bot removed the target/4-0-x label Feb 25, 2019
@trop
Copy link
Contributor

trop bot commented Feb 25, 2019

I have automatically backported this PR to "5-0-x", please check out #17117

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.

None yet

4 participants