Closed Bug 80451 Opened 25 years ago Closed 25 years ago

Attachements menu not updated correctly

Categories

(SeaMonkey :: MailNews: Message Display, defect, P2)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: xalkina, Assigned: prass)

Details

(Whiteboard: [nsbeta1+])

Attachments

(4 files)

This is how to reproduce: 1. Open a message with say 3 attachments 2. Go to attachements menu, you see 3 entries there 3. Save all attachements, one after the other 4. Delete message, which moves you to the next 5. Open attachements menu again, you see one of the files from the previous message If you follow the same procedure with next message, sometimes you get two entries in the att. menu from previous messages Just checked with 2001051008 on linux
attachment UI -> mscott
Assignee: sspitzer → mscott
that's not good. should only take a couple lines of JS to fix. I must have messed up my logic for destroying entries in the attachment popup.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: nsbeta1
Whiteboard: [nsbeta1+]
Target Milestone: --- → mozilla0.9.1
I was able to reproduce this on Windows 2000 using 200151404. changing OS to ALL.
Status: ASSIGNED → NEW
OS: Linux → All
Priority: -- → P2
This morning's builds had a bug ( bug 80746 ) which may have led to a Bugzilla user inadvertantly changing this bug from the Assignbed/Accepted status to the New status. If you are the owner of this bug please check to see that it is in the correct Status. Thanks.
reassigning to prass
Assignee: mscott → prass
Attached patch proposed patchSplinter Review
Attached patch updated patch.Splinter Review
MScott, can you please r/sr the patch? Thanks!
Status: NEW → ASSIGNED
thanks for looking into this prassana. Couple questions....I still don't understand why what I had previously written doesn't work? - while ( popup.childNodes.length > 2 ) - popup.removeChild(popup.childNodes[0]); shouldn't that remove all but the last 2 elements in the popup? The last 2 elements being the separator and the save All Attachments menu item. Looking at your patch, why don't we set len = .childNodes.length in all cases instead of setting it sometimes to .childNodes.length and sometimes to len=GetNumberOfAttachmentsForDisplayedMessage().
*** Bug 80820 has been marked as a duplicate of this bug. ***
Thanks for the update Scott. 1. This should work: - while ( popup.childNodes.length > 2 ) - popup.removeChild(popup.childNodes[0]); but because the items are inserted at length-2 869 item = popup.insertBefore(item, popup.childNodes[length-2]); some items keep remaining 2. You are right I should just set it to length instead of getting the biggest one Here is a new patch
Attached patch patchSplinter Review
Attached patch final patchSplinter Review
sr=mscott
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Using build 2001-05-17 on win, mac and linux this is fixed. Note: I didn't have to save all the attachments and delete the msg to see this problem. I verified it by selecting a message with 5 attachments, selecting File|Attachment from the menu to see the list of attachments. Then changing to another message with one attachment, I use to see all 6 when selecting the File|Attachment. Now I see the right attachments with the right message. Verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: