0
Files
src/printing
Andy Phan 7e4a968190 [PrintBackend] Skip Papers with empty page sizes
For Windows and CUPS IPP, PrintBackend is able to add Papers with empty
page sizes. This used to be filtered out when converting a Paper into a
Media object, but now that we have strengthened the Mojo validation
conditions to disallow empty page sizes, users are encountering crashes.

Since we used to drop Papers with empty page sizes after the conversion
anyway, skip any Papers with empty page sizes.

Also, remove a single instance of an unnecessary explicit conversion
to std::string.

Bug: 1416294, 1412305
Change-Id: I608cf931f84588e65098eb6964cbe2b56e3f2f63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4257595
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1106525}
2023-02-17 00:24:02 +00:00
..
2023-02-16 18:53:20 +00:00

//printing contains foundational code that is used for printing. It can depend on other low-level directories like //cc/paint and //ui, but not higher level code like //components or //content. Higher level printing code should live in //components/printing or the embedder.