Closed Bug 1655558 Opened 1 year ago Closed 1 year ago

Use CUPS to Retrieve Printer Paper Sizes On macOS and Linux

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

(Whiteboard: [print2020_v81])

Attachments

(2 files, 1 obsolete file)

As part of the movement to unify the macOS and Linux printing code to use CUPS (Bug 1654678) we need to retrieve paper-size information from CUPS as well.

This will involve pulling data from the cups_size_s struct doc

Attachment #9166696 - Attachment description: Bug 1655558 - Retrieve Paper Information from CUPS WIP → Bug 1655558 - Retrieve Paper Information from CUPS WIP r=jwatt,alaskanemily
Attachment #9166696 - Attachment description: Bug 1655558 - Retrieve Paper Information from CUPS WIP r=jwatt,alaskanemily → Bug 1655558 - Part 1 Retrieve Paper Information from CUPS on macOS r=jwatt,alaskanemily
Blocks: 1656379
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5913d9f4c3e9
Part 1 Retrieve Paper Information from CUPS on macOS r=jwatt

This builds on top of bug 1656146 to compute the page information on a
background task, and return it via a promise.

Co-Authored-By: Erik Nordin <enordin@mozilla.com>

This is no worse than what we were doing.

In the future, instead of just querying the margin we may want to query
extra information that requires a DC in windows too or what not, for
example.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3af254e2c9fa
Retrieve paper information from CUPS, and convert paperList to an async attribute. r=jwatt
https://hg.mozilla.org/integration/autoland/rev/ca10c664039d
Retrieve the paper margins lazily on Windows. r=jwatt,bobowen
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Attachment #9166696 - Attachment is obsolete: true
Flags: needinfo?(enordin)
You need to log in before you can comment on or make changes to this bug.