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: delegate to PrintViewManagerBase on failed print #34893

Merged
merged 1 commit into from Jul 19, 2022

Conversation

codebytere
Copy link
Member

Description of Change

Closes #34813.

Fixes an issue where invalid pageSize values would cause a silent hang and eventual crash. This was happening because our PrintVieeManager was incorrectly delegating failures back to PrintViewManagerBase for non-headless job failures. Correct this issue by delegating when the job is a regular printer job and not a headless PDF job.

Checklist

Release Notes

Notes: Fixes an issue where invalid pageSize values would cause a silent hang and eventual crash.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/20-x-y labels Jul 12, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 12, 2022
@codebytere codebytere changed the title fix: delegate to PrintViewManagerBase on failed print fix: delegate to PrintViewManagerBase on failed print Jul 12, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 13, 2022
@codebytere codebytere force-pushed the fix-missing-invalid-settings-error branch from a0503fc to 7260c63 Compare July 14, 2022 08:48
@codebytere codebytere force-pushed the fix-missing-invalid-settings-error branch from 7260c63 to 310a079 Compare July 19, 2022 08:44
@codebytere codebytere requested a review from jkleinsc July 19, 2022 12:45
@codebytere codebytere merged commit 05d4966 into main Jul 19, 2022
@codebytere codebytere deleted the fix-missing-invalid-settings-error branch July 19, 2022 12:46
@release-clerk
Copy link

release-clerk bot commented Jul 19, 2022

Release Notes Persisted

Fixes an issue where invalid pageSize values would cause a silent hang and eventual crash.

@trop
Copy link
Contributor

trop bot commented Jul 19, 2022

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

VerteDinde pushed a commit that referenced this pull request Jul 29, 2022
fix: delegate to PrintViewManagerBase on failed print
@trop
Copy link
Contributor

trop bot commented Jul 29, 2022

@VerteDinde has manually backported this PR to "20-x-y", please check out #35139

schetle pushed a commit to schetle/electron that referenced this pull request Nov 3, 2022
fix: delegate to PrintViewManagerBase on failed print
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
fix: delegate to PrintViewManagerBase on failed print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Can not print contents of browser window silently in Ubuntu linux
3 participants