-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
refactor: printToPDF should be headless #33654
Conversation
0239b82
to
b84824b
Compare
1b29ac3
to
9bdd930
Compare
API LGTM |
9bdd930
to
7fdb8d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. I forgot how Github's review workflow works and didn't submit my comment.
@codebytere By the way, I'm seeing a similar issue when using the |
@pushkin- that's a totally different problem & there are already open issues for it :) |
7fdb8d2
to
f01e26e
Compare
Cool, I found this one. If that's the one you're talking about, can the "blocked" label be removed since there is a repro gist now? And can the version tag be updated? Thank you @codebytere |
4a9c361
to
ff5f370
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full review forthcoming; just sending this one suggestion out for rn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM although if possible, backwards compatiability discussed here would be nice-to-have
ff5f370
to
0cbfd33
Compare
2cb7097
to
db2be74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
Release Notes Persisted
|
Description of Change
BREAKING CHANGE
Closes #24947.
Closes #30753.
Closes #27605.
Closes #29324.
This PR refactors our
printToPDF
implementation to match that of Chromium's headless implementation, seen here. Per https://bugs.chromium.org/p/chromium/issues/detail?id=1101596, we'd hit the limit with our previous approach, since with out of process iframes enabled we were unable to properly composite subframes. This removes that hacked-together implementation in favor of headless'.Checklist
npm test
passesRelease Notes
Notes: Refactored
webContents.printToPDF
to align with the Chrome Devtools implementation.