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

[Feature] Ability to test printing #2236

Closed
aslushnikov opened this issue May 14, 2020 · 7 comments
Closed

[Feature] Ability to test printing #2236

aslushnikov opened this issue May 14, 2020 · 7 comments

Comments

@aslushnikov
Copy link
Contributor

As of today (Playwright v1.0.1), Chromium's page.pdf() method does not work in headful mode. This is an upstream issue and might require investment from our side, if it proves to be bothering our users.

@pavelfeldman
Copy link
Member

pavelfeldman commented May 14, 2020

Side note: I can see that the original issue wanted to test printing, not generate pdfs.

@pavelfeldman pavelfeldman changed the title [BUG] page.pdf() does not work in headful [FEATURE] Ability to test printing May 14, 2020
@pavelfeldman pavelfeldman changed the title [FEATURE] Ability to test printing [Feature] Ability to test printing May 14, 2020
@shirshak55
Copy link

@shirshak55
Copy link

@aslushnikov
I guess this is not going to be fixed at upstream.

https://bugs.chromium.org/p/chromium/issues/detail?id=753118

It was reported on Aug 8, 2017 and there is no activity or intention to fix it so i think patching would be good solution atm?

@pavelfeldman
Copy link
Member

so i think patching would be good solution atm

@shirshak55: could you elaborate on what 'patching' you have in mind?

@shirshak55
Copy link

shirshak55 commented Jun 29, 2020

"In this case we can intercept IPCs in content instead of headless, or expose API between content/ and components/printing, or inject a protocol-based handler (through components/printing API) from ChromeDevToolsManagerDelegate" ?

You submitted this patch right? https://chromium-review.googlesource.com/c/chromium/src/+/592608

Cannot we patch similar to this for printing also?

@pavelfeldman
Copy link
Member

@shirshak Yes, the patch is mine and the comment belongs to another Playwright team member, so sure we can do that. But it is a sizeable effort with the limited impact, so we will prioritize based on the user feedback!

@aslushnikov
Copy link
Contributor Author

This feature didn't accumulate a lot of excitement in the 3 months of its existence 🤷‍♂️ Definitely not enough to justify the required upstream work.

Closing for now.

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

No branches or pull requests

3 participants