Closed Bug 302958 Opened 19 years ago Closed 19 years ago

Print jobs lack a job name

Categories

(Camino Graveyard :: Printing, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

References

Details

Attachments

(1 file)

When you print in FF or Camino, the print job shows up in the Print Monitor
tools as "untitled". And if you choose to save to a PDF from the Print dialog,
the default filename is ".pdf".
Works for me in Deer Park on Mac OS X 10.2.8 (where it's still called Print
Center). I can see the title, and the default filename. The same name is also
used for the preview. Were you using a special name (Japanese characters for
example), or is this another Tiger bug ?

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050801
Firefox/1.0+
Oh, I guess this is a Camino thing. Maybe it gets the print job name from the
frontmost (Carbon) window.
Product: Core → Camino
Target Milestone: --- → Camino1.1
Version: Trunk → unspecified
Reassigning bug...
Assignee: printing → pinkerton
Note to self: we could call PMSetJobNameCFString() to set the job name, perhaps
getting the title from nsIPrintSettings.
Assignee: pinkerton → sfraser_bugs
*** Bug 267606 has been marked as a duplicate of this bug. ***
A comment I had made in the dupe:

Note that when bug 157628 is in play, the suggested title becomes simply ".pdf"
(see also 157628's duplicate, bug 181548 comment 3).

(otherwise the suggested title is "Untitled.pdf", at least under 10.3.x)
(In reply to comment #6)
> Note that when bug 157628 is in play, the suggested title becomes simply ".pdf"
> (see also 157628's duplicate, bug 181548 comment 3).
> 
> (otherwise the suggested title is "Untitled.pdf", at least under 10.3.x)

Turns out it's actually any plugin/applet (bug 303547) that causes ".pdf".
Note that, for reasons lost in the mists of time, nsIPrintingContext.h is only
used on Mac.
Attachment #191843 - Flags: superreview?(bryner)
Attachment #191843 - Flags: review?(jhpedemonte)
Comment on attachment 191843 [details] [diff] [review]
Patch to set the print job title

rev the iid on nsIPrintingContext and sr=me
Attachment #191843 - Flags: superreview?(bryner) → superreview+
Attachment #191843 - Flags: review?(jhpedemonte) → review+
Attachment #191843 - Flags: approval1.8b4?
Attachment #191843 - Flags: approval1.8b4? → approval1.8b4+
Checked in.
One thing I noticed is that files without a title (e.g. .txt files) end up using
the entire URL as the print job title; we might want to improve that later.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: