Closed Bug 28724 Opened 25 years ago Closed 25 years ago

return causes caret problems in Mail replies (not moving to next line)

Categories

(Core :: DOM: Editor, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: bijals, Assigned: mozeditor)

References

Details

(Whiteboard: fix in hand)

Attachments

(1 file)

Steps: 1) Open a blank document 2) Type "asdf" 3) Hit return Actual Results: Caret appears two lines below, but when you type "asdf" again it appears on the line above where it is supposed. Expected Results: Caret appears only one line down and where you type Build Date/Platform: 2/21/00-08 on NT
Appears in Mail compose, especially when replying to an email message. This will be a high frequency. Please stop by to see this problem.
Keywords: beta1
Again, please focus on the Mail incarnation of this problem which occurs while replying to a message: Hit return on first line and caret does not move to the next line. You also have the caret sometimes show up two lines below, but typing occurs on the middle line.
Keywords: dogfood
Summary: Return places caret two lines below → Carriage return causes caret problems
Changed summary to reflect the bug more accurately.
Summary: Carriage return causes caret problems → Carriage return causes caret problems in Mail replies
M14; reassign to jfrancis
Assignee: brade → jfrancis
Summary: Carriage return causes caret problems in Mail replies → return causes caret problems in Mail replies (not moving to next line)
Target Milestone: M14
*** Bug 28760 has been marked as a duplicate of this bug. ***
accepting bug
Status: NEW → ASSIGNED
Putting on PDT- radar for dogfood and beta1. Will not hold for this one.
Whiteboard: [PDT-]
This occurs about 60% or more of the times I try to reply to an email in Seamonkey Mail. Basically, hit REPLY all and in the new message type something "asdf" and hit return. Caret does not move to the next line at times or it moves two lines down. Can you show you this today.
adding EB in status summary...ender blocker
Whiteboard: [PDT-] → [PDT-] EB
This bug actually can happen in a wide variety of circumstances, on both plaintext and html editors (including html form text widgets). Mike has extended the selection api's to allow me to get better control of where the caret actually ends up. I have made use of this new functionality in the editor, and we've seen a lot of improvement in the consistency and correctness of the caret location. So far Akkana and I have tested these changes, and will continue to test them tonight and tomorrow. The cool thing about the work on this is that it is unlikely to cause big regressions. Even if I screwed it up, the likely result would just be a bad location for the caret in some circumstance. If PDT wants this in beta1, we are pretty much ready to go (some more hours of testing is the extent of my recommendation). Nominating for PDT+ consideration (removed PDT- from status).
Whiteboard: [PDT-] EB → fix in hand
To analyze this bug we need the following information: 1) Risk associated with check in (need more info from Joe) a) # of lines of codes added and changed b) Platforms on which this fix was tested c) 1 day (based on Joe's earlier comments) 2) Frequency of Bug: High - Mail compose, IM compose, Composer, and plain text editing 3) Negative impact from bug: Medium - Makes typing frustrating
It has been tested on all three platforms. as for how much changed, there were Mike's changes to nsRangeList.cpp in layout: NS_IMETHODIMP nsDOMSelection::SetHint(PRBool aHintRight) { return mRangeList->SetHint(aHintRight); } NS_IMETHODIMP nsDOMSelection::GetHint(PRBool *aHintRight) { return mRangeList->GetHint(aHintRight); } Then these changes had to be perculated through various dom headers and javascript cruft, plus the nsIDOMSelection.h interface (all of these changes were trivial). Then there are my changes in the editor, which amount to about 30 new lines of code scattered through nsHTMLEditor, nsTextEditRules.cpp, and nsHTMLEditRules.cpp, which make use of the new SetHint() functionality. So a fair number of files were touched, but altogether < 50 lines of new code.
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Analysis on bug: 1) Risk associated with check in (need more info from Joe) a) < 50 lines of code b) Tested on all 3 platforms c) 2 day 2) Frequency of Bug: High - Mail compose, IM compose, Composer, and plain text editing 3) Negative impact from bug: Medium - Makes typing frustrating
verified in composer using 2/25 builds...Bijal, please verify in mail compose..thanks!
verified in composer using 2/25 builds...Bijal, please verify in mail compose..thanks!
Excellent! Verified in Seamonkey Mail compose window when replying to an email message.
verified per bijal's comments...in 2/25 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: