Closed Bug 1654678 Opened 4 years ago Closed 4 years ago

Unify macOS and Linux CUPS data retrieval for nsIPrinterList

Categories

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

80 Branch
enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox80 --- wontfix
firefox81 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

(Whiteboard: [print2020_v81])

Attachments

(4 files)

Up until now macOS has used the Core printing API, and Linux has used the GTK API for retrieving printer information.

With updates to our support for CUPS, introduced in Bug 1653433 we can now unify how both platforms retrieve printer information.

This patch will aim to refactor the existing functionality (retrieving printer names and paper sizes) on macOS and GTK to take advantage of these changes using the same code.

Whiteboard: [print2020_v80] → [print2020_v81]
Pushed by emcdonough@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88751d3ef57f
Part 1 - Add generic CUPS printer interface r=nordzilla

This leaves the nsPrinter for the time being, as it will also need to be
replaced on GTK before it can be removed.

While messing with widget/moz.build, also move the new printing source to be
controlled by the NS_PRINTING flag.

Pushed by emcdonough@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6749d961bb78
Part 2 - Make CUPSPrinter own its CUPS dest data r=nordzilla
https://hg.mozilla.org/integration/autoland/rev/c09b32d23fd2
Part 3 - Create nsPrinterCUPS and use it on OS X for printer enumeration r=nordzilla
Blocks: 1656384
Pushed by emcdonough@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a98d688af751
Part 4 - Make GTK printer enumeration use the unified CUPS code r=jwatt,emilio

Marking resolved, since all patches have landed.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: