Closed Bug 1666918 Opened 5 years ago Closed 5 years ago

Handle Duplicate Paper Sizes Returned By CUPS

Categories

(Core :: Printing: Setup, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox82 --- wontfix
firefox83 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

(Whiteboard: [print2020_v83])

Attachments

(1 file)

CUPS will occasionally return a list containing multiple duplicate paper sizes. I have personally observed this behavior on my Ubuntu 16.04.7 VM, trying to retrieve paper information for my Canon iX6820.

We are currently handling duplicate paper sizes on the front end, but it makes more sense to handle this as close to the source as possible, in the platform code.

CUPS occasionally returns duplicate paper sizes, especially on
older versions of Ubuntu. This patch utilizes a hash set to
skip over any dpulciate paper sizes, ensuring that the final list
contains only unique sizes.

These duplicate checks are currently being done on the front end,
and this patch will allow us to remove them.

Attachment #9177514 - Attachment description: Bug 1666918 - Prevent Duplicate Paper Sizes Returned From CUPS → Bug 1666918 - Prevent Duplicate Paper Sizes Returned From CUPS r=alaskanemily,emilio,jwatt
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f101d192e609 Prevent Duplicate Paper Sizes Returned From CUPS r=emilio
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch

Given we handle this in the frontend currently, I don't think we need to uplift this. Let me know if you disagree.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: