Print to File -> PDF does not move generated tmp file to destination

RESOLVED WORKSFORME

Status

()

Core
Printing: Output
RESOLVED WORKSFORME
4 years ago
2 years ago

People

(Reporter: WeirdAl, Assigned: WeirdAl)

Tracking

26 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Assignee)

Description

4 years ago
Steps to reproduce:
(1) Find a page you want printed to PDF.
(2) File -> Print...
(3) In the GTK dialog, select Print to File, then PDF, and specify the path you want to save the file to.
(4) Hit OK.

In nsDeviceContextSpecGTK::EndDocument(), mSpoolFile has the generated PDF ready to deliver.  It calls gtk_print_job_send(mPrintJob, print_callback, mSpoolFile, ns_release_macro);.  In print_callback, aError says "Operation not supported", and our code calls mSpoolFile->Remove(true).  So just when we're on the cusp of success... we die and report nothing to the user.  The Print to PDF operation has silently failed.
(Assignee)

Comment 1

2 years ago
In a more modern build we are not seeing this.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.