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

RESOLVED FIXED in seamonkey2.0a1

Status

SeaMonkey
MailNews: Message Display
--
minor
RESOLVED FIXED
10 years ago
9 years ago

People

(Reporter: wsmwk, Assigned: Bruno 'Aqualon' Escherl)

Tracking

Trunk
seamonkey2.0a1

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

8.70 KB, patch
Karsten Düsterloh
: review+
neil@parkwaycc.co.uk
: superreview+
Details | Diff | Splinter Review
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.
(Assignee)

Comment 1

10 years ago
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
(Assignee)

Comment 2

10 years ago
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
(Assignee)

Comment 3

10 years ago
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.
(Assignee)

Comment 4

10 years ago
(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
(Assignee)

Comment 5

10 years ago
Created attachment 305846 [details] [diff] [review]
Make delete button work again v1

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)

Updated

10 years ago
Attachment #305846 - Flags: superreview?(neil) → superreview+

Comment 6

10 years ago
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-
(Assignee)

Comment 7

10 years ago
Created attachment 306928 [details] [diff] [review]
Make the delete button work in all places

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)

Updated

10 years ago
Attachment #306928 - Flags: superreview?(neil) → superreview+

Updated

10 years ago
Attachment #306928 - Flags: review?(mnyromyr) → review+
(Assignee)

Updated

10 years ago
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
Last Resolved: 10 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 → ---
(Assignee)

Comment 10

9 years ago
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
(Assignee)

Comment 13

9 years ago
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.
(Assignee)

Comment 14

9 years ago
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
Last Resolved: 10 years ago9 years ago
Resolution: --- → FIXED

Updated

9 years ago
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.