Closed Bug 130982 Opened 23 years ago Closed 23 years ago

delete/move context menu command attempts to restore focus to invalid row

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssu0262, Assigned: ssu0262)

Details

Attachments

(1 file, 2 obsolete files)

steps to reproduce: 1) left-click on a new folder in the folder pane (this ensures that there isn't a message loaded in the message pane). Make sure that this folder has more messages than can be shown in the thread pane. 2) scroll down to the last message in the thread pane. 3) right-click on the last message (or any message here) and select the delete message menu item. Notice that it scrolls back to the top attempting to show the row above the first possible row.
Attached patch patch v1.0 (obsolete) — Splinter Review
I see this on RedHat Linux 7.2, BuildID 2002031319, so marking OS:ALL.
OS: Windows 2000 → All
QA Contact: esther → olgam
Great catch Sean!
Comment on attachment 74137 [details] [diff] [review] patch v1.0 This is a bit of a guess but wouldn't it be easier to move the Ensure call under the if (... >= 0) condition?
no, that wouldn't be correct. There are actually two problems here: 1) Delete/Move To commands ensure that the reselected row is visible. 2) Calls to ensureRowIsVisible() is sometimes being passed in a value < 0. To fix 1), EnsureRowInThreadOutlinerIsVisible() needs to be removed from HandleDeleteOrMoveMsgCompleted(). To fix 2), EnsureRowInThreadOutlinerIsVisible() needs to not call ensureRowIsVisible() for indexes < 0.
Status: NEW → ASSIGNED
Comment on attachment 74137 [details] [diff] [review] patch v1.0 r=bhuvan
Attachment #74137 - Flags: review+
part of this change is to the heavily hacked on HandleDeleteOrMoveMsgCompleted() fix one bug, you regress an old one, or cause a new one. Why was that call there in the first place? can you use cvsblame to help figure that out, and then if it was added for a bug, see if you change doesn't regress it.
Attached patch patch v1.1 (obsolete) — Splinter Review
This new patch will only patch problem 2). Problem 1) has been filed as bug 131307.
Attachment #74137 - Attachment is obsolete: true
Attached patch patch v1.2Splinter Review
added comments to the previous patch.
Attachment #74432 - Attachment is obsolete: true
Comment on attachment 74434 [details] [diff] [review] patch v1.2 moving r= from the earlier patch for problem 2). got sr=sspitzer for problem 2).
Attachment #74434 - Flags: superreview+
Attachment #74434 - Flags: review+
Comment on attachment 74434 [details] [diff] [review] patch v1.2 a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #74434 - Flags: approval+
patch checked in to trunk only.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
yes, sr=sspitzer on that patch. thanks for splitting it up.
Verified on trunk build at 04/22/02 on Linux, Win2K, Mac 10.1.3. Focus remains on the selected folder. No message loaded in the message pane.
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: