Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop borderless sizes from media size list
The paper size dropdown only allows one entry for any given size. When a borderless and non-borderless version of the same size are available, only one of them will make it into the list. In the past the non-borderless size generally happened to be selected because the printer would list the borderless version second. With crrev.com/c/4022966, Chrome started sorting the list into a consistent order. Depending on how the printer names its borderless sizes, it could end up with things like "A 4.borderless" sorting ahead of "A4", which causes the regular A4 size to disappear. Since borderless sizes don't currently produce different output from non-borderless sizes, let's remove the borderless sizes from the list entirely. This ensures that the "regular" sizes are always selected. We don't currently have a good way to detect all the borderless patterns without just dropping non-standard paper names entirely, but the two patterns added here cover all of the problem patterns that were observed in our test lab. (cherry picked from commit 49d1fac) Bug: b/263452851 Test: Manually compared paper size lists on lab printers Change-Id: Ie34f104a3c3f285c836eb6fdb0382931df749eeb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4157931 Commit-Queue: Benjamin Gordon <bmgordon@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1091614} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4163339 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#259} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information