Open Bug 1660885 Opened 4 years ago Updated 3 years ago

Make nsIPrinterList::GetNamedOrDefaultPrinter always return a printer, if any are available

Categories

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

enhancement

Tracking

()

ASSIGNED

People

(Reporter: alaskanemily, Assigned: alaskanemily)

Details

(Whiteboard: [print2020][old-ui-] )

Attachments

(1 obsolete file)

Since we want nsIPrinterList::GetDefaultOrNamedPrinter to be a way to specify a certain printer, or fallback to a default if none is found, we should ensure that it returns a printer even if the system default is not available. We could just fallback to the first printer in the list.

I also added a small helper to make creating PrinterInfo more typesafe, which
makes this less error prone to implement.

Summary: Make nsIPrinterList::GetDefaultOrNamedPrinter always return a printer, if any are available → Make nsIPrinterList::GetNamedOrDefaultPrinter always return a printer, if any are available
Whiteboard: [print2020_v82][old-ui-]
Priority: P1 → P2
Whiteboard: [print2020_v82][old-ui-] → [print2020_v83][old-ui-]
Whiteboard: [print2020_v83][old-ui-] → [print2020_v84][old-ui-]
Severity: S2 → N/A
Priority: P2 → P3
Whiteboard: [print2020_v84][old-ui-] → [print2020_v85][old-ui-]
Whiteboard: [print2020_v85][old-ui-] → [print2020_v87][old-ui-]
Whiteboard: [print2020_v87][old-ui-] → [print2020][old-ui-]
Attachment #9171824 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: