Skip to content

fix: invalid printer settings when settings passed - #52367

Merged
jkleinsc merged 3 commits into
mainfrom
fixup-printer-settings
Jul 17, 2026
Merged

jkleinsc merged 3 commits into
mainfrom
fixup-printer-settings

Conversation

@jkleinsc

Copy link
Copy Markdown
Member

Description of Change

Additionally, a test has been added for this regression which uses a silent virtual printer to test.

Checklist

Release Notes

Notes: Fixed webContents.print() returning "Invalid printer settings" when print options are provided.

@jkleinsc
jkleinsc requested a review from a team as a code owner July 16, 2026 13:45
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 16, 2026
@jkleinsc jkleinsc added semver/patch backwards-compatible bug fixes target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Jul 16, 2026
@jkleinsc
jkleinsc force-pushed the fixup-printer-settings branch from 480091f to 768f298 Compare July 16, 2026 15:44

@dsanders11 dsanders11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FYI, I think this is going to merge conflict with #52375 which is bringing in https://chromium-review.googlesource.com/c/chromium/src/+/8044283 that refactors PrintViewManagerBase slightly.

Given the backport targets for this, I think it might be cleanest to wait for the roll to land, then fix the merge conflict in this PR and backport? Just flagging this as an area of friction.

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jul 17, 2026
changes to the printing.patch are not necessary for this fix and will hamper backports and/or conflict with chromium upgrades.
@jkleinsc

Copy link
Copy Markdown
Member Author

@dsanders11 good point. I dropped the printing patch change from this PR since it was just a cleanup. I'll followup with another PR to cleanup the printing patch after this and the chromium bump merge.

@jkleinsc
jkleinsc merged commit 8fc3b07 into main Jul 17, 2026
70 checks passed
@jkleinsc
jkleinsc deleted the fixup-printer-settings branch July 17, 2026 16:13
@release-clerk

release-clerk Bot commented Jul 17, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed webContents.print() returning "Invalid printer settings" when print options are provided.

@trop

trop Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot removed the target/43-x-y PR should also be added to the "43-x-y" branch. label Jul 17, 2026
@trop

trop Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added in-flight/44-x-y merged/44-x-y PR was merged to the "44-x-y" branch. and removed target/44-x-y PR should also be added to the "44-x-y" branch. in-flight/44-x-y labels Jul 17, 2026
@andrezani

This comment was marked as spam.

@trop trop Bot added merged/43-x-y PR was merged to the "43-x-y" branch. and removed in-flight/43-x-y labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Linux: webContents.print() returns "Invalid printer settings" in Electron 43, works in Electron 42

4 participants