Closed Bug 609992 Opened 14 years ago Closed 13 years ago

Attachment header <fieldset> in the wrong spot for inline text attachments

Categories

(MailNews Core :: MIME, defect)

x86_64
Linux
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.3a3

People

(Reporter: squib, Assigned: squib)

Details

Attachments

(2 files, 1 obsolete file)

Attached image The problem
When libmime emits inline attachments, it first adds a <fieldset> for the header. However, when emitting inline text attachments, the <fieldset> gets added slightly too late (after writing out the wrapper <div>/<pre> tags). As a result, the header for inline text attachments is a different size from inline image attachments. Aside from looking strange, the inline text version is also generally smaller, making it harder to read.
Component: Message Reader UI → MIME
Product: Thunderbird → MailNews Core
QA Contact: message-reader → mime
Attached patch Partial fix (obsolete) — Splinter Review
This fixes the issue with plain text attachments, but I bet the problem exists with other text attachments too.
Assignee: nobody → squibblyflabbetydoo
Status: NEW → ASSIGNED
This doesn't have any visual effect, but HTML attachments now put the fieldset/legend outside of the moz-text-html div, just like plain text attachments.

:bienvenu, does this seem reasonable, and are there other places this needs to be done (it doesn't seem like it)? Also, do I need tests for this?
Attachment #488554 - Attachment is obsolete: true
Attachment #504898 - Flags: feedback?(bienvenu)
(In reply to comment #2)

> 
> :bienvenu, does this seem reasonable, and are there other places this needs to
> be done (it doesn't seem like it)? Also, do I need tests for this?

This seems reasonable. I don't know of any other places this needs to be done. I think this is a minor enough change - do we have any tests for this code that could be tweaked to test this change?
Attachment #504898 - Flags: feedback?(bienvenu) → feedback+
Nothing's jumping out in the way of tests. I assume they'd be in mailnews/mime/test/unit, but there doesn't seem to be anything that actually checks the formatted message. It probably wouldn't be a bad idea to have something like that, but that's a potentially big project.
Comment on attachment 504898 [details] [diff] [review]
Do the same for HTML attachments

Since I can't find any related tests that I could build upon to test this, I'm asking for review. If we *do* need tests, let me know.
Attachment #504898 - Flags: review?(bienvenu)
Comment on attachment 504898 [details] [diff] [review]
Do the same for HTML attachments

ok, thx, I ran with this patch earlier, and it looked good.
Attachment #504898 - Flags: review?(bienvenu) → review+
Hooray, checkin-needed time!
Keywords: checkin-needed
Committed as http://hg.mozilla.org/comm-central/rev/66953e3f5a21
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: