Open Bug 1751610 Opened 3 years ago Updated 6 months ago

New print dialog missing standard paper sizes.

Categories

(Core :: Printing: Setup, defect)

Firefox 96
defect

Tracking

()

UNCONFIRMED

People

(Reporter: rsbrux, Unassigned, NeedInfo)

References

Details

Attachments

(4 files)

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

Steps to reproduce:

Try to print a web page using new print dialog on A4 paper.

Actual results:

Default paper selection is some tiny, nonstandard paper size, although my default printer and system setting call for A4 paper. A4 paper is not listed in the available paper sizes.

Expected results:

The new print dialog (at least in Firefox 96.0 under Ubuntu) is still missing numerous standard paper sizes, e.g. the European standard paper size A4. A3, B5 and B6 (which are far less common) are listed, but A4 (the nearest European equivalent to U.S. letter size) is not.
The list of paper sizes has an inordinate number of paper sizes by absolute dimensions and an extremely short list of named paper sizes in comparison to the "system print dialog"!

Attached image Screenshot.png

Did you report this to Ubuntu first before reporting it here?
Screenshot from Firefox 96 on Fedora 35 (Fedora rpm):

Flags: needinfo?(rsbrux)

Screenshots of the paper sizes available in other apps and a screenshot of the paper sizes available in Firefox would be useful.

Additionally, are you using a snap or flatpak, or are you using the apt package?

Attached image SystemPrintMenu.png

System print menu from Ubuntu 18.04 as displayed in Firefox 96 64 bit

Flags: needinfo?(rsbrux)

Firefox 96 print dialog showing default small page size and large number of non-standard page dimensions

No, I didn't report it to Ubuntu, as the system print dialog behaves normally (see SystemPrintMenu.png).
Firefox was originally installed as part of Ubuntu Studio, so I presume it was installed from apt, not from snap or flatpak. However, I am not enough of a Linux expert to know for sure. Firefox is managing its own updates, independent of Ubuntu software management.

Those paper sizes come from your printer driver, afaict, though I forget which one we use by default.

The severity field is not set for this bug.
:alaskanemily, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emcdonough)
Flags: needinfo?(emcdonough)
See Also: → 1668794
Flags: needinfo?(emcdonough)

rsbrux: could you confirm what kind of printer you're using? (It's hidden by the large menu of paper sizes in comment 4, so I can't tell from there!) The list of sizes should depend on the printer driver that's selected.

Flags: needinfo?(rsbrux)

I am using a Brother MFC-6890CDW. BTW, I have exactly the same problem in Thunderbird 91.5.0 (64 bit) running under Ubuntu 18.04.

Flags: needinfo?(rsbrux)

P.S. Doesn't the system print dialog use the same list of paper sizes from the printer driver? Why do the Firefox and Thunderbird print dialogs list different sizes from the system print dialog? (Please see the screenshots I uploaded 18 days ago.)

One thing I notice is that at least some of the sizes in the Firefox list are slightly different from standard paper dimensions; e.g. I see 212.02 x 298.1mm in the middle of the image, which is just a couple of millimeters away from being A4. I wonder if the system dialog takes the dimensions from the driver and displays them as standard paper names if they're within a certain margin of error, so that this size appears as A4 there? But that's just speculation....

I found driver downloads for this printer here, and looked in the PPD file provided as part of the Linux .deb package. I'm a bit puzzled by the numbers there:

*DefaultImageableArea: Letter
*ImageableArea BrA3_S/A3:                                       "9 9 819 1168"
*ImageableArea BrA3_A3/A3 (Long Grain):                                 "9 9 576 1168"
*ImageableArea BrA3_B_S/A3 (Borderless):      "6 6 840 1186"
*ImageableArea BrA3_B_A3/A3 (Borderless / Long Grain):      "6 6 840 1186"
*ImageableArea B4/JB4:                                  "9 9 706 1009"
*ImageableArea BrB4_S/JB4 (Short Grain):                                        "9 9 706 1009"
*ImageableArea BrB4_B_B4/JB4 (Borderless):                                      "6 6 727 1030"
*ImageableArea BrB4_B_S/JB4 (Borderless / Short Grain):                                 "6 6 727 1030"
*ImageableArea Tabloid/Tabloid:                         "9 9 769 1201"
*ImageableArea BrLedger_S/Tabloid (Short Grain):                                "9 9 769 1201"
*ImageableArea BrLedger_B_Ledger/Tabloid (Borderless):                                  "6 6 790 1222"
*ImageableArea BrLedger_B_S/Tabloid (Borderless / Short Grain):                                 "6 6 790 1222"
*ImageableArea A4/A4:                                   "9 9 576 820"
*ImageableArea BrA4_B/A4 (Borderless):                  "6 6 595 839"
*ImageableArea Letter/Letter:                           "9 9 593 770"
*ImageableArea BrLetter_B/US Letter (Borderless):               "9 9 615 792"
*ImageableArea Legal/Legal:                             "9 9 593 986"
*ImageableArea Executive/Executive:                     "9 9 503 734"
*ImageableArea B5/JIS B5:                               "9 9 481 687"
*ImageableArea A5/A5:                                   "9 9 401 573"
*ImageableArea A6/A6:                                   "9 9 279 397"
*ImageableArea BrA6_B/A6 (Borderless):                  "6 6 296 424"
*ImageableArea PostC4x6/Photo:                  "9 9 269 410"
*ImageableArea BrPostC4x6_B/Photo (Borderless):         "6 6 285 436"
*ImageableArea IndexC5x8/Index Card:                    "9 9 341 554"
*ImageableArea BrIndexC5x8_B/Index Card (Borderless):   "6 6 357 580"
*ImageableArea PhotoL/Photo L:                  "9 9 233 338"
*ImageableArea BrPhotoL_B/Photo L (Borderless):         "6 6 251 364"
*ImageableArea Photo2L/Photo 2L:                        "9 9 340 483"
*ImageableArea BrPhoto2L_B/Photo 2L (Borderless):       "6 6 357 509"
*ImageableArea Postcard/Postcard 1:                     "9 9 264 397"
*ImageableArea BrHagaki_B/Postcard 1 (Borderless):      "6 6 280 423"
*ImageableArea DoublePostcardRotated/Postcard 2 (Double):       "9 9 401 545"
*ImageableArea EnvC5/C5 Envelope:                       "9 68 440 686"
*ImageableArea EnvDL/DL Envelope:                       "9 68 293 661"
*ImageableArea Env10/Com-10:                            "9 68 275 721"
*ImageableArea EnvMonarch/Monarch:                      "9 68 260 577"
*ImageableArea EnvYou4/JE4 Envelope:                    "9 68 278 701"

*%==== Information About Media Sizes ========
*DefaultPaperDimension: Letter
*PaperDimension BrA3_S/A3:                                      "828 1177"
*PaperDimension BrA3_A3/A3 (Long Grain):                                        "585 1177"
*PaperDimension BrA3_B_S/A3 (Borderless):         "846 1192"
*PaperDimension BrA3_B_A3/A3 (Borderless / Long Grain):         "846 1192"
*PaperDimension B4/JB4:                         "715 1018"
*PaperDimension BrB4_S/JB4 (Short Grain):                               "715 1018"
*PaperDimension BrB4_B_B4/JB4 (Borderless):         "733 1036"
*PaperDimension BrB4_B_S/JB4 (Borderless / Short Grain):         "733 1036"
*PaperDimension Tabloid/Tabloid:                        "778 1210"
*PaperDimension BrLedger_S/Tabloid (Short Grain):                       "778 1210"
*PaperDimension BrLedger_B_Ledger/Tabloid (Borderless):         "796 1228"
*PaperDimension BrLedger_B_S/Tabloid (Borderless / Short Grain):         "796 1228"
*PaperDimension A4/A4:                          "585 829"
*PaperDimension BrA4_B/A4 (Borderless):                 "601 845"
*PaperDimension Letter/Letter:                  "602 779"
*PaperDimension BrLetter_B/US Letter (Borderless):              "624 801"
*PaperDimension Legal/Legal:                            "602 995"
*PaperDimension Executive/Executive:                    "612 743"
*PaperDimension B5/JIS B5:                              "490 696"
*PaperDimension A5/A5:                          "410 582"
*PaperDimension A6/A6:                          "288 406"
*PaperDimension BrA6_B/A6 (Borderless):                 "302 430"
*PaperDimension PostC4x6/Photo:                 "278 419"
*PaperDimension BrPostC4x6_B/Photo (Borderless):        "291 442"
*PaperDimension IndexC5x8/Index Card:                   "350 563"
*PaperDimension BrIndexC5x8_B/Index Card (Borderless):  "363 586"
*PaperDimension PhotoL/Photo L:                 "242 347"
*PaperDimension BrPhotoL_B/Photo L (Borderless):        "257 370"
*PaperDimension Photo2L/Photo 2L:                       "349 492"
*PaperDimension BrPhoto2L_B/Photo 2L (Borderless):      "363 515"
*PaperDimension Postcard/Postcard 1:                    "273 406"
*PaperDimension BrHagaki_B/Postcard 1 (Borderless):     "286 429"
*PaperDimension DoublePostcardRotated/Postcard 2 (Double):      "410 554"
*PaperDimension EnvC5/C5 Envelope:                      "449 720"
*PaperDimension EnvDL/DL Envelope:                      "302 695"
*PaperDimension Env10/Com-10:                           "284 755"
*PaperDimension EnvMonarch/Monarch:                     "269 611"
*PaperDimension EnvYou4/JE4 Envelope:                   "287 735"

These dimensions don't seem to match the standard paper sizes they claim to be; e.g. for US Letter (8.5 x 11", which in PostScript points would be 612 x 792), we find

*PaperDimension Letter/Letter:                  "602 779"
*PaperDimension BrLetter_B/US Letter (Borderless):              "624 801"

neither of which make sense to me for the dimensions of US Letter.

Picking another example, the PPD file has

*PaperDimension A4/A4:                          "585 829"

which, if we convert to millimeters, comes to 206.375 x 292.453mm. And sure enough, that size appears in the Firefox list (rounded to two decimal places), although it lists as "(Borderless)" which I don't understand.

What the PPD has for

*PaperDimension BrA4_B/A4 (Borderless):                 "601 845"

would be 212.019 x 298.097mm.... aha, that is also present in the Firefox list, again with the "(Borderless)" suffix. So that one at least seems consistent.

Maybe Emily is more familiar with how this stuff is set up.... is it possible we're incorrectly getting that "(Borderless)" suffix on sizes that shouldn't have it? Should we try to use "standard" names if the size we get from the printer is "close enough" somehow?

So we currently have kPaperSizePointsEpsilon = 4.0 as an allowed variance when matching paper sizes. But the sizes in the Brother PPD here differ by more than this.

Yeah, we do try to use the PWG paper size names where possible. At the time, 4 pts was supposed to be a large variation. Perhaps we should consider a larger epsilon. If it doesn't match that, I believe we just use the name given to us by CUPS, with CUPS's localization of it.

Flags: needinfo?(emcdonough)

The severity field is not set for this bug.
:jfkthame, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jfkthame)

Why not use the CUPS name first, instead of "If it doesn't match" a precoded size? Maybe that's what the system print dialog does.
At the risk of annoying some of the fine people whose work makes Firefox possible, why is there even a new print dialog?
I was perfectly happy with the old system of print preview and system print dialog; in fact I miss the print preview.
Aren't there more interesting/important things to work on, like this:
https://bugzilla.mozilla.org/show_bug.cgi?id=444284

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: