Open Bug 1669198 Opened 4 years ago Updated 2 years ago

Auto select of printer paper source, always defaults to tray 1

Categories

(Core :: Printing: Setup, defect, P2)

defect

Tracking

()

People

(Reporter: boaz.dodin, Unassigned)

Details

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

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Steps to reproduce:

Print an A4 page on a printer (Epson WF-7520) with 2 paper trays - tray 1 with A5 sheets and tray 2 with A4 sheets.

Actual results:

Since Firefox 82 (beta 6 and 7 are tested) it's always printed on sheets from tray 1.

Expected results:

A4 should be printed on sheets from tray 2.
It's a regression, as this option worked great on all release version, including 81.0.1

Component: Untriaged → Printing
Product: Firefox → Toolkit

Jonathan, I don't think we have any way of managing trays currently. I believe this would've previously worked through the system dialog on Windows which shows paper trays under the Preferences option when you have a physical printer selected.

Any idea if this is something we could handle?

Flags: needinfo?(jwatt)

Thanks for reporting this issu, Boaz. It would help us to understanding the issue better to know whether tray 1 supports A4 in addition to A5. Is that the case?

Also, in the print interface, can you open the "More settings" section and confirm what paper size is selected when the print ends up going to tray 1. If A5 is selected, does the print go to tray 2 if you change the selection to A4? If A4 was already selected, what actually happens when it's printed to the A5 paper? Is the print output scaled down to fit, or does it get cropped?

Finally, can you confirm that if you click on "Print using system dialog..." you are still able to select the tray there?

Mark: from a cursory glance at https://www.cups.org/doc/cupspm.html it doesn't look like CUPS provides a way to select between trays. Bob, do you know what the state of the APIs are for Windows?

Flags: needinfo?(jwatt)
Flags: needinfo?(bobowencode)
Flags: needinfo?(boaz.dodin)
Whiteboard: [print2020_v84][old-ui-]

On Firefox 82 beta 8 the new printing interface is gone.
Printing using the old interface just works.

Flags: needinfo?(boaz.dodin)

(In reply to Boaz Dodin from comment #3)

On Firefox 82 beta 8 the new printing interface is gone.
Printing using the old interface just works.

If you go to about:config (in the URL bar and accept the warning).
Type modal into the search box and change: print.tab_modal.enabled to true, you'll be able to test with the new UI again, thanks.

Flags: needinfo?(bobowencode) → needinfo?(boaz.dodin)

It doesn't look like you can set the tray, I think you might have to do it in the printer's own properties dialog.
I think it is something the printer decides, so maybe we're not selecting the correct paper type.

It looks like there are some APIs in .NET for getting the paper sources:
https://docs.microsoft.com/en-us/dotnet/api/system.drawing.printing.printersettings.papersources?view=dotnet-plat-ext-3.1

But that seems to be more about what paper types to offer, not selecting a tray for printing.

Actually, it looks like you might be able to with DC_BINS for capabilities from DeviceCapabilites and dmDefaultSource in the DEVMODE.

(In reply to Jonathan Watt [:jwatt] from comment #2)

Thanks for reporting this issue, Boaz. It would help us to understanding the issue better to know whether tray 1 supports A4 in addition to A5. Is that the case?

Yes

Also, in the print interface, can you open the "More settings" section and confirm what paper size is selected when the print ends up going to tray 1.

A4

If A4 was already selected, what actually happens when it's printed to the A5 paper? Is the print output scaled down to fit, or does it get cropped?

It's get cropped

Finally, can you confirm that if you click on "Print using system dialog..." you are still able to select the tray there?

Confirmed, I am able to select the tray there.

Flags: needinfo?(boaz.dodin)

Thanks, Boaz.

(In reply to Jonathan Watt [:jwatt] from comment #2)

from a cursory glance at https://www.cups.org/doc/cupspm.html it doesn't look like CUPS provides a way to select between trays

Taking a closer look this moring, I do see the following line in that documentation:

CUPS_MEDIA_SOURCE: Controls where the media is pulled from, typically either CUPS_MEDIA_SOURCE_AUTO or CUPS_MEDIA_SOURCE_MANUAL.

So it sounds like CUPS may have support for picking a tray. Unfortunately the documentation doesn't say anything more about it so we'll have to figure it out from the source once we get to working on this bug.

Emily, no specific question in regards to the needinfo - it's just to make sure you're aware of this bug.

Flags: needinfo?(emcdonough)

Moving to Printing: Setup since it sounds like the CUPS support needs to be investigated. Maybe it's defaulting to tray 1 unless we tell it explicitly to automatically select?

Component: Printing → Printing: Setup
Product: Toolkit → Core

Setting to S3 since there is a workaround using the system dialog.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [print2020_v84][old-ui-] → [print2020_v85][old-ui-]
Whiteboard: [print2020_v85][old-ui-] → [print2020_v87][old-ui-]

This is still an issue on the just released Firefox 86.
I was in hope that it will be fixed before riding to the release channel...

Flags: needinfo?(emcdonough)
Whiteboard: [print2020_v87][old-ui-] → [print2020_v91][old-ui-]
Version: Firefox 82 → Trunk

I use Tray 2 on my printer as default. I am unable to figure out how to print from Firefox to anything by Tray 1 forcing additional time to "Print using the System Dialog"
How do I set preferences within Firefox to send all prints to Tray 2?

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