Closed Bug 1805477 Opened 3 years ago Closed 3 years ago

Pages-per-sheet doubled up with system dialog on macOS

Categories

(Core :: Printing: Setup, defect)

defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

On macOS, when you set up print preview and select multiple pages per sheet, that value is lost. That can result in some users misprinting and having to reprint.

Note: NSPagesAcross/NSPagesDown is internal API to Apple and is basically
unknown to the Internet. I discovered it by digging through printing structs in
a debugger while trying to find out how the pages-per-sheet information was
being communicated internally in Cocoa. However, after finding it, I see Google
knows about a grand total of 18 pages on the Internet that mention it, all as
part of debug info dumps. That's still helpful though, since it shows that
these two dictionary entries have been in use since at least 2008, giving some
confidence about backwards compatibility and that it will likely remain in use.

Related to these dictionary keys, Apple's official documentation claims that
there are similarly named keys called NSPrintPagesAcross/NSPrintPagesDown:

https://developer.apple.com/documentation/appkit/nsprintpagesacross
https://developer.apple.com/documentation/appkit/nsprintpagesdown

However, I couldn't get those to work, either to read values or to set values.
The references I could find to them on the Internet were in debug output and
people also stating they couldn't get them to work. I have to wonder if someone
at Apple changed the names at some point and forgot to update the
documentation?!

Finally, note that NSPrintPagesPerSheet is long deprecated and nowadays just
has a dummy value of "1" hardcoded.

https://developer.apple.com/documentation/appkit/nsprintpagespersheet

Pushed by jwatt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f42cde0309b3 Prevent pages-per-sheet on macOS being double applied by system print dialog. r=dholbert
Pushed by jwatt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/345c10ab15d2 Prevent pages-per-sheet on macOS being double applied by system print dialog. r=dholbert
Flags: needinfo?(jwatt)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Flags: qe-verify+

Hello Jonathan,

Can you please provide steps to reproduce this issue on an affected build?

We cannot reproduce it on our end with the information given.

Flags: needinfo?(jwatt)
Flags: needinfo?(jwatt)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: