Saving to PDF does not function correctly
Categories
(Toolkit :: Printing, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | verified |
People
(Reporter: vlucaci, Assigned: mstriemer)
References
(Blocks 1 open bug)
Details
(Whiteboard: [print2020_v81] )
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Affected versions
- 81.0a1(20200816214203)
Affected platforms
- macOS 10.15.6
- Ubuntu 18.04
Steps to reproduce
- Launch FF.
- Trigger the new modal UI.
- In the drop-down , select Print to PDF.
- Print.
Expected result
- Page is successfully printed to PDF.
Actual result
- A blank .txt file is generated and at the same time, an actual print is performed on the printer.
Suggested Severity
- I would consider this issue an S1 seeing as how no PDF is generated and actual papers are being printed.
Regression range
- Not a regression
Other notes
- Screen cast of the issue: https://drive.google.com/file/d/1nG2DuXzFeuqmUoqJTseeFeRGt7u2un5z/view?usp=sharing
Comment 1•4 years ago
|
||
I'm not sure if we expected this to work, but when I tried it, it gave me the same results… 😂
Comment 2•4 years ago
|
||
You need to set:
settings.printToFile = true;
settings.outputFormat = nsIPrintSettings.kOutputFormatPDF;
around here:
Assignee | ||
Comment 3•4 years ago
|
||
outputFormat
is set again in PrintingChild.jsm [1] since I didn't see a flag to save it to prefs. When the save to PDF printer is selected we set the outputFormat
[2] on the settings object which gets passed through to the Printing:Child:Enter
call [3].
If this is on macOS what I see there is that the print always goes to the default printer. If I select Save to PDF or a printer that isn't on my current network the print still goes to my printer I last printed to.
We aren't setting printToFile
, I can add that but this currently works on Windows and there seems to be some other underlying issue on macOS.
[1] https://searchfox.org/mozilla-central/rev/2f9eacd9d3d995c937b4251a5557d95d494c9be1/toolkit/actors/PrintingChild.jsm#327-329
[2] https://searchfox.org/mozilla-central/rev/2f9eacd9d3d995c937b4251a5557d95d494c9be1/toolkit/components/printing/content/print.js#322
[3] https://searchfox.org/mozilla-central/rev/2f9eacd9d3d995c937b4251a5557d95d494c9be1/toolkit/components/printing/content/printUtils.js#229
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Comment 6•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 7•4 years ago
|
||
Verified fixed with the latest builds, Fx 82.0a1 (2020-08-25) and Fx 81.0b2 on macOS 10.15 and Ubuntu 20.04
Comment 8•4 years ago
|
||
Description
•