Closed Bug 419379 Opened 12 years ago Closed 12 years ago

delete message doesn't work if focus in header of message preview pane

Categories

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

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0a1

People

(Reporter: wsmwk, Assigned: bugzilla)

References

Details

Attachments

(1 file, 1 obsolete file)

click in header portion of of message pane, delete message doesn't work if focus in header of message preview pane.  Tested in SM trunk in follow up to bug 122854.

doesn't happen in thunderbird.
Thunderbird has the same problem. When you click at one of the lines where you get a caret (e.g. Subject) delete message isn't working anymore.

When you click somewhere else in the header pane with no caret, delete works fine.

It works fine in SM 1.1.8 so it's a regression somewhere during trunk development.

Keywords: regression
Version: unspecified → Trunk
There are two problem, the first one is that delete key is not working. I don't know so far when that was introduced, but it's definitely a while ago (didn't work in a 2007-07-01 build I tested).

The second problem, that the delete button isn't working was introduced by the change in bug 49323 (but I don't know what's the reason so far).
Blocks: 49323
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/toolkit/content/globalOverlay.js&rev=1.34&mark=85#81

In the cmd_delete case with the caret, .getControllerForCommand(aCommand) doesn't get called and hence isCommandEnabled(aCommand) is false.

I don't know why this works in the cmd_shiftDelete case and not here, so any hints are appreciated.
(In reply to comment #1)
> It works fine in SM 1.1.8 so it's a regression somewhere during trunk
> development.
Don't know what I tested today, but that's not working in branch too. So no regression.
Keywords: regression
Attached patch Make delete button work again v1 (obsolete) — Splinter Review
The patch brings back the button_delete command removed in bug 391701 and also introduces button_shiftDelete to retain the fix from bug 49323.

The problem with the cmd_delete usage for the delete button is probably, that cmd_delete is blocked somewhere in libeditor, when a readonly textfield in the header pane has focus.

With the patch the delete button always works and the delete key works at least for those cases, where the focus isn't in a readonly textfield of the header pane.
Assignee: mail → aqualon
Status: NEW → ASSIGNED
Attachment #305846 - Flags: superreview?(neil)
Attachment #305846 - Flags: review?(mnyromyr)
Attachment #305846 - Flags: superreview?(neil) → superreview+
Comment on attachment 305846 [details] [diff] [review]
Make delete button work again v1

This does not suffice:
- open a standalone message window
- hit delete button there
=> doesn't work
Attachment #305846 - Flags: review?(mnyromyr) → review-
I forgot the standalone message window before (thx Karsten for spotting), so the patch is v1 + the change in messageWindow.js
Attachment #305846 - Attachment is obsolete: true
Attachment #306928 - Flags: superreview?(neil)
Attachment #306928 - Flags: review?(mnyromyr)
Attachment #306928 - Flags: superreview?(neil) → superreview+
Attachment #306928 - Flags: review?(mnyromyr) → review+
Keywords: checkin-needed
Checking in mailnews/base/resources/content/mail3PaneWindowCommands.js;
/cvsroot/mozilla/mailnews/base/resources/content/mail3PaneWindowCommands.js,v  <--  mail3PaneWindowCommands.js
new revision: 1.157; previous revision: 1.156
done
Checking in mailnews/base/resources/content/mailWindowOverlay.xul;
/cvsroot/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul,v  <--  mailWindowOverlay.xul
new revision: 1.350; previous revision: 1.349
done
Checking in mailnews/base/resources/content/messageWindow.js;
/cvsroot/mozilla/mailnews/base/resources/content/messageWindow.js,v  <--  messageWindow.js
new revision: 1.119; previous revision: 1.118
done
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
delete key fails in 3-pane 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008061702 SeaMonkey/2.0a1pre

ditto thunderbird trunk
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
WFM in Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1pre) Gecko/2008062915 SeaMonkey/2.0a1pre

Wayne, can you give further instructions when it fails for you?
safe-mode

click at end of subject in header so that caret appears (either expanded or normal headers), hit windows delete key.

similar problem: selecting text in header, and delete doesn't work

iirc, in these use case, delete button has worked when delete key hasn't. In this chase however, delete button does NOT work. So perhaps this is now a different bug?
comment 11 was thunderbird

SM behavior slightly different - delete button WORKS, delete key doesn't. retested with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1pre) Gecko/2008062902 SeaMonkey/2.0a1pre
Ok, then thunderbird doesn't have this patch. With it at least the delete button would work again.

The other problem was already outlined by me in comment #5, but that's definitely outside my knowledge and I don't know if and what can be done in that cases.
I opened bug 448146 for the delete button issue in TB.

If someone has an idea about the the delete key not working when the focus is in the header pane, please open a new bug.

-> RESOLVED FIXED
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → seamonkey2.0alpha
You need to log in before you can comment on or make changes to this bug.