#include "chrome/common/chrome_paths.h"Please auto-format and sort the list. Ideally a local presubmit would warn and pause/stop the CL upload.
base::ReadFileToString(Make sure this succeeded, or use ReadFileToBytes() to force a check and then do byte to string_view conversion for set_content()?
// We check that the image actually loaded and rendered.go/avoid-we
base::DictValue params;Create a helper instead of repeating?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
#include "chrome/common/chrome_paths.h"Please auto-format and sort the list. Ideally a local presubmit would warn and pause/stop the CL upload.
Done
base::ReadFileToString(Make sure this succeeded, or use ReadFileToBytes() to force a check and then do byte to string_view conversion for set_content()?
Done
// We check that the image actually loaded and rendered.Eric Leesego/avoid-we
Done
base::DictValue params;Create a helper instead of repeating?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Wait for @media print resources to load in Page.printToPDF
When printing to PDF, especially in headless mode, images loaded
via CSS `content:` or `background-image` that only apply when
`@media print` is active were occasionally not rendering because the
PDF was generated before the network request completed.
This adds a call to `PrintRenderFrameHelper::WillPrintSoon()` which
properly kicks off loading and waits for these resources, and passes
a closure that resumes the PDF generation once the frame finishes
loading.
A browser test has been added that utilizes a DelayedHttpResponse
to reliably simulate a slow image and verify that the resulting
PDF waits for it to render.
TAG=agy
CONV=3b1088ec-9d27-4819-a5cd-8adc21689612
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |