Closed Bug 966087 Opened 10 years ago Closed 9 years ago

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

Categories

(Core :: Printing: Output, defect)

26 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: WeirdAl, Assigned: WeirdAl)

References

()

Details

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.
In a more modern build we are not seeing this.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.