Closed Bug 1755974 Opened 3 years ago Closed 2 years ago

New Print dialog with CUPS: pages-per-sheet doubled up with system dialog

Categories

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

Firefox 97
defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: sexxxenator, Assigned: jwatt)

References

Details

Attachments

(1 file, 1 obsolete file)

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

Steps to reproduce:

Context: I have a "Sharp MX M266Nv" printer, configured with CUPS, using driver for "SharpMX-M264Nv PS 1.0"

Actual results:

  • First paper got printed single-sided
    I already experienced that multiple times, that's why I decided to switch dialog for the second paper: two sided printing works with system printing but not with FF's dialog
  • Second paper got printed 4 pages/pages and 2 sided.
    It seems that both configurations were taken into account!

Expected results:

  • Using "New" FF's printing dialog should be able to print 2 sided when system dialog is
  • When switching from FF dialog to system dialog, already configured options should be transfered and then only configuration present in System dialog be taken into account. A combination of the options from both dialog should never occur.

The Bugbug bot thinks this bug should belong to the 'Core::Printing: Setup' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Printing: Setup
Product: Firefox → Core

I suspect this is because we perform our own pages-per-sheet transformations in platform code, but only ever rely on the system printing code to do simplex/duplex. That probably means that both Firefox and the print backend did the pages-per-sheet transformation, effectively doubling it. I will look at ignoring our own pages-per-sheet setting when using the system dialog.

Severity: -- → S3
Priority: -- → P3
Flags: needinfo?(emcdonough)
Summary: New Print dialog does not play well with native OS printing dialog → New Print dialog with CUPS: duplex ignored, then pages-per-sheet doubled up with system dialog
Assignee: nobody → jwatt
Status: UNCONFIRMED → NEW
Ever confirmed: true

Ugh, gotta love it when the documentation and the APIs don't match.... congratulations on tracking things down here.

Does this also affect the issue of whether duplex gets applied properly from the new dialog? (First "actual results" indicated it didn't work.)

Thanks! Regarding duplex, I am fixing that in a separate patch.

Flags: needinfo?(emcdonough)
See Also: → 1805429
See Also: → 1805477

Comment on attachment 9307506 [details]
Bug 1755974 - Prevent pages-per-sheet on macOS being double applied by system print dialog. r=alaskanemily

Revision D164317 was moved to bug 1805477. Setting attachment 9307506 [details] to obsolete.

Attachment #9307506 - Attachment is obsolete: true

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

Regarding duplex, I am fixing that in a separate patch.

I filed bug 1805429 for the duplex issue.

Summary: New Print dialog with CUPS: duplex ignored, then pages-per-sheet doubled up with system dialog → New Print dialog with CUPS: pages-per-sheet doubled up with system dialog
Pushed by jwatt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4d41c789765d Fix Linux system print dialog to take the pages-per-sheet from print preview. r=dholbert
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

I'm not entirely sure this was actually fixed (and it actually got slightly-worse with the changes in bug 1805716 that landed in the Nightly immediately after this one).

See bug 1919414 for more details...

(more details in bug 1919414 comment 3 in particular)

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

Attachment

General

Created:
Updated:
Size: