Always honor pref print.save_as_pdf.use_page_rule_size_as_paper_size.enabled
Categories
(Core :: Printing: Output, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•2 years ago
|
||
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.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
| bugherder | ||
Description
•