Closed Bug 42093 Opened 25 years ago Closed 23 years ago

[FIX]Window title displays wrong image type

Categories

(SeaMonkey :: UI Design, defect, P3)

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: chuckie, Assigned: bzbarsky)

References

()

Details

Attachments

(2 files, 1 obsolete file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m16) Gecko/20000605 BuildID: 2000060508 The URL http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8383 points to a JPEG image, but in the title bar Mozilla shows "CGI Image" Reproducible: Always Steps to Reproduce: 1.Open http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8383 in Mozilla. 2.Read Title bar Actual Results: Title Bar reads "CGI Image 396x212 pixels" Expected Results: Title Bar should read "JPEG Image 396x212 pixels"
hmm, i see that also--weird. maybe it's getting confused by showattachment.cgi? Don't know whose problem this would be, sending to parser for an initial look since I assume they're the ones who set the title in this case.
Assignee: asa → rickg
Status: UNCONFIRMED → NEW
Component: Browser-General → Parser
Ever confirmed: true
QA Contact: doronr → janc
Waqar: can you please take a look. The parser doesn't set the window title -- it only reports a <title> if present, which is not the case here.
Assignee: rickg → waqar
This bug has been marked "future" because the original netscape engineer working on this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
FOrgot to set the milestone.
Target Milestone: --- → Future
I disagree with the future marking...this isn't like other difficult-to- reproduce or not easily visible bugs...I see this on all bugzilla attachment pages where the attachment is an image (i.e. http://bugzilla.mozilla.org/showattachment.cgi?attach_id=5371), and i'm sure it occurs in other places also. At least pass this around to other engineers who might have an idea here, please...
*** Bug 53199 has been marked as a duplicate of this bug. ***
Keywords: correctness
updated qa contact.
QA Contact: janc → bsharma
Is this bug still valid? We now do not try to show the image type at all.
Yes I think it is still valid. If you want to save any of these CGI images, you have absolutely no way of determining their filetype from Mozilla's info. Is it a GIF, JPEG or PNG? That information is not available anywhere in Mozilla, whereas even Netscape 1 provided it. Another thing that Mozilla won't tell you anywhere is the size of the image in bytes or kilobytes. Instead one has to save it to disk, then look. Ideally it would say right on the title bar: GIF image 100x50 pixels (5kb)
QA Contact: bsharma → moied
bulk reassigning Waqar's bugs to Don.
Assignee: waqar → dcone
Not parser.
Component: Parser → Compositor
Now the title is: filename.foo (Image 400x500 pixels) It might be nice to bring back the image type, as that's kind of useful info (specially JPEG vs GIF/PNG: "is it a lossy copy?"). I suggest: filename.foo (JPEG image, 400x500 pixels)
OS: Windows 98 → All
Hardware: PC → All
Attached patch Proposed patch (obsolete) — Splinter Review
Taking bug. reviews, anyone? This essentially implements Jeremy's idea. Show "FOO" if the type is IMAGE/FOO otherwise show the whole mime type (this case should never really be hit).
Assignee: dcone → bzbarsky
Component: Compositor → XP Apps: GUI Features
Summary: Window title displays wrong image type → [FIX]Window title displays wrong image type
Target Milestone: Future → mozilla0.9.9
Looks good to me, though this isn't an official r=.
Attachment #67807 - Attachment is obsolete: true
Attachment #67851 - Flags: review+
Comment on attachment 67851 [details] [diff] [review] Address some nits from timeless sr=jag
Attachment #67851 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
should we perhaps strip "x-" as well from mimetypes like "image/x-icon"?
Ho-hum. Forgot about those. :) Sicking, want to review?
Comment on attachment 68159 [details] [diff] [review] patch to strip out the "X-" if present r=sicking Didn't think about those either until i saw the the image/x-icon mimetype
Attachment #68159 - Flags: review+
Comment on attachment 68159 [details] [diff] [review] patch to strip out the "X-" if present sr=jag
Attachment #68159 - Flags: superreview+
second patch checked in.
Marking verified fixed, checked in cvs
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: