gecko-dev/layout/printing
Jonathan Watt 9209f25a68 Bug 1867674. Always honor pref print.save_as_pdf.use_page_rule_size_as_paper_size.enabled. r=AlaskanEmily
Until recently the only place that checked this pref was the Firefox front-end
code, and it communicated to use the CSS page size as the "paper" sheet size
for PDFs by setting nsIPrintSettings.usePageRuleSizeAsPaperSize. This was
expanded in bug 1866319 to make WPT also ask for the same behavior. However,
there are other places that are failing to ask for this.

Rather than play whack-a-mole to fix up the entry points to PDF printing, this
moves the pref check to the platform code.

The one situation that I'm not changing the pref to work in is when Firefox is
running ond Android. That's just because it's not currently clear to me what
the fallout is of Firefox on Android potentially creating PDFs with different
sheet sizes, and I don't want us to potentially deal with negative fallout as
we're finishing up the Gsuite work in December.

For now, I'm also refraining from removing
nsIPrintSettings.usePageRuleSizeAsPaperSize just in case we run into issues
(not very likely on non-Android) and want to temporarily restore the old
behavior.

Differential Revision: https://phabricator.services.mozilla.com/D195181
2023-12-01 21:06:02 +00:00
..
crashtests Bug 1864255. Make layout/printing/crashtests/1758199-1.html close as many of its windows as we can. r=dholbert 2023-11-23 06:51:36 +00:00
ipc Bug 1859025: Add some profiler markers as guideposts for what's going on during long print operations. r=profiler-reviewers,canaltinova 2023-10-18 05:34:50 +00:00
DrawEventRecorder.cpp
DrawEventRecorder.h
moz.build
nsPagePrintTimer.cpp Bug 1669815. Remove aInRange outparam from nsPrintJob::PrintPage. r=dholbert 2023-11-18 22:05:43 +00:00
nsPagePrintTimer.h
nsPrintData.cpp
nsPrintData.h
nsPrintJob.cpp Bug 1867674. Always honor pref print.save_as_pdf.use_page_rule_size_as_paper_size.enabled. r=AlaskanEmily 2023-12-01 21:06:02 +00:00
nsPrintJob.h Bug 1669815. Remove aInRange outparam from nsPrintJob::PrintPage. r=dholbert 2023-11-18 22:05:43 +00:00
nsPrintObject.cpp Bug 1865480. Rename nsIContentViewer to nsIDocumentViewer. r=layout-reviewers,emilio 2023-11-21 12:45:59 +00:00
nsPrintObject.h
PrintTranslator.cpp Bug 1859025: Add some profiler markers as guideposts for what's going on during long print operations. r=profiler-reviewers,canaltinova 2023-10-18 05:34:50 +00:00
PrintTranslator.h