Closed Bug 2066293 Opened 3 months ago Closed 3 months ago

Attachment channels frequently have an unknown content type when the type is known

Categories

(MailNews Core :: MIME, defect)

Thunderbird 81
defect

Tracking

(Not tracked)

RESOLVED FIXED
156 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 external file)

If a message attachment is loaded through a channel, the content type of that channel is usually "application/x-unknown-content-type", but we do know the content type, it just hasn't been passed to the right piece of code. Image attachments sometimes have a content type, because they pass through a different code path.

Target Milestone: --- → 156 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b4ded305d3a2
Add attachment content type to the URL and channel. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED

This commit introduced a new failure
https://treeherder.mozilla.org/jobs?repo=comm-central&fromchange=bfa282059337b831f0d858403719853ec7b6edcf&selectedTaskRun=UXwcG3AeTVyjj6rjGUO6eg.0

TEST-UNEXPECTED-FAIL | comm/mailnews/mime/test/unit/test_rfc822_body.js | test_rfc822_body_no_display_inline - [test_rfc822_body_no_display_inline : 79] 0 == 1

Can we back out?

(In reply to Kai Engert [:KaiE:] from comment #3)

Can we back out?

Flags: needinfo?(brendan)
Flags: needinfo?(brendan)
Pushed by brendan@thunderbird.net: https://hg.mozilla.org/comm-central/rev/98a92026bdff Revert "Bug 2066293 - Add attachment content type to the URL and channel. r=mkmelin" for causing xpcshell-test failures on macOS. r=backout
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/45a1f3b014af
Add attachment content type to the URL and channel. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 3 months ago → 3 months ago
Resolution: --- → FIXED
Regressions: 2067655
Regressions: 2072231
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: