Closed
Bug 980451
Opened 12 years ago
Closed 1 day ago
Notify in nsMsgStatusFeedback::OnStateChange OnEndMsgDownload() missing for newsgroup message with image attachments viewed inline
Categories
(MailNews Core :: Networking: NNTP, defect)
MailNews Core
Networking: NNTP
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: alta88, Unassigned)
Details
(Whiteboard: [patchlove])
Attachments
(1 file)
|
27.41 KB,
patch
|
Details | Diff | Splinter Review |
The code here:
http://dxr.mozilla.org/comm-central/source/mailnews/base/src/nsMsgStatusFeedback.cpp#120
never runs since OnStateChange gets a uri for the inline image (1 if there are > 1) and not the original uri. And the image uri doesn't have a msgWindow, like the original uri does.
so this code never runs:
http://dxr.mozilla.org/comm-central/source/mail/base/content/msgHdrViewOverlay.js#668
one result being that images never get sized right (in something like alt.binaries.birds).
Bug 193317 removed the ability to get the originalUri for nntp; it's possible the change there is no longer relevant, and there's awareness this may not be a good idea. A possible fix is to revert that change and get the originalUri from the channel in OnStateChange.
(Imap has a tangle of notifications different from nntp though it seems parts of imap were copied into nntp).
Attached is a nonworking wip debug patch, in case someone ever comes this way again.
Updated•10 years ago
|
Whiteboard: [patchlove]
Updated•3 years ago
|
Severity: normal → S3
Comment 1•1 day ago
|
||
The old C++ code (nsMsgStatusFeedback::OnStateChange) that received inline-image URIs instead of the original message URI no longer exists. The current JS-based pipeline uses DOMContentLoaded on the top-level document, which fires exactly once per message with the correct channel URI, regardless of how many inline sub-resources the message contains.
In tests with different attachments everything worked as expected, inline images were resized correctly.
Status: NEW → RESOLVED
Closed: 1 day ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•