Closed Bug 88024 Opened 24 years ago Closed 23 years ago

Down arrow key creates fake line break at the end of a TEXTAREA

Categories

(Core :: Layout: Form Controls, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: mpt, Assigned: kinmoz)

References

Details

(Whiteboard: [C], [caret] [EDITORBASE] [CANDIDATE_094] fixed on trunk)

Attachments

(1 file, 1 obsolete file)

To reproduce: 1. Click in the `Additional comments' field in this bug report. 2. Press `a'. 3. Watch the caret very closely as you press the Down arrow key. 4. Note that nothing special happens. 5. Press Enter.6. Notice that one line break is created, as it should be. 7. Now hold down Backspace and Delete until you are sure that any trace of text is deleted from the textarea.8. Repeat steps 2 and 3. 9. Notice that the caret moves one pixel to the right. 10. Repeat step 5. What should happen: * One line break is created. What actually happens: * Two line breaks are created. Problem occurs with: * The TEXTAREA in every single smegging bug I comment on, build 2001062608, Mac OS 9.1 Problem does not occur with: * The plain-text message composition window in the same build.
When I entered that bug report, there was a completely blank line between `created' and `Problem occurs', and a completely blank line between `9.1' and `Problem doesn't'. So, it would appear that the extra line breaks aren't really there, the TEXTAREA is just interpreting something as a line break when it shouldn't be. Or something.
Summary: Down arrow key creates invisible line break at the end of a TEXTAREA → Down arrow key creates fake line break at the end of a TEXTAREA
confirmed for win32 builds also- this one has been bugging me for months. =\
-->mjudge since rods is on sabbatical
Assignee: rods → mjudge
OS: Mac System 8.5 → All
Hardware: Macintosh → All
a
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Reproducable error in editor on build 2001073003: 0. Type up some text, then move cursor to end of last line of text. (you can skip step 0) 1. Hit Enter, and type in a new line of text. Leave cursor at end of line. 2. Hit down arrow. Cursor moves a few pixels to the right. 3. Hit a character. A new line with that character will be added to the text, which is wrong. If instead of a character, the Enter key is hit, two new lines are added. This occasionally happens on any line, not just the last one, with either the end or down arrow key. On step 2, if the end key is hit instead of down arrow, the cursor moves a few pixels to the right but editor appears to behave correctly on step 3.
look at the comments in bug 93549
Assignee: mjudge → anthonyd
Whiteboard: [caret]
Target Milestone: mozilla1.0 → mozilla0.9.5
Blocks: 93549
i think this is a consequence of the _moz_dirty br
Status: NEW → ASSIGNED
Whiteboard: [caret] → [C], [caret]
adding kin@netscape.com to the cc list. the problem here seems to be that the caret gets placed *after* the <br>. then once input begins, the new input is placed after the <br>. anthonyd
*** Bug 93549 has been marked as a duplicate of this bug. ***
--> kin
Assignee: anthonyd → kin
Status: ASSIGNED → NEW
*** Bug 100926 has been marked as a duplicate of this bug. ***
This is a caret navigation problem in nsTextInputSelectionImpl::CompleteMove() which brade added. I believe all we need to do is check to see if the last child child (offset-1) is a BR, if so, then make sure we place the caret before it at offset-1. Note that this problem happens in empty textareas since empty textareas contain a BR.
Status: NEW → ASSIGNED
Whiteboard: [C], [caret] → [C], [caret] FIX IN HAND
Attachment #51104 - Flags: review+
*** Bug 96799 has been marked as a duplicate of this bug. ***
--> 0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Whiteboard: [C], [caret] FIX IN HAND → [C], [caret] EDITORBASE FIX IN HAND
Comment on attachment 51778 [details] [diff] [review] Patch Rev 2 (Fixes a leak I added in Patch Rev 1) r=brade
Attachment #51778 - Flags: review+
Attachment #51104 - Attachment is obsolete: true
Comment on attachment 51778 [details] [diff] [review] Patch Rev 2 (Fixes a leak I added in Patch Rev 1) sr=sfraser
Attachment #51778 - Flags: superreview+
Fix checked into TRUNK: mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp revision 1.166
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: [C], [caret] EDITORBASE FIX IN HAND → [C], [caret] [EDITORBASE] [CANDIDATE_094] fixed on trunk
I still see the bug in buildID:- 2001-10-09-09-trunk. Which trunk build was the fix checked in?
based on that comment, it was checked in midday on Oct 9. So builds starting with the evening of Oct 9 should have the fix....
verified fixed on trunk build :- 2001-10-11-09trunk win2k 2001-10-10-20trunk macOS X 2001-10-11-08trunk RedHat linux 7.1 adding keyword 'vbranch'
Keywords: vbranch
I still see this bug in 0.9.5 (build 2001101117). Try the test case in bug 93549.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Brent, I checked this fix into the TRUNK, after 0.9.5 branched, so it will not appear in any 0.9.5 build. Look for it in TRUNK builds or 0.9.6. I verified that bug 93549 is indeed fixed on the TRUNK. Marking bug FIXED.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
when will this fix be moved into the branch build? verified fixed in trunk build
Madhur - which branch build are you referring to? If you're talking about 0.9.5, it's not a stop-ship problem so it's not going to make the 0.9.5 train.
I was refering to the 0.9.5 build
*** Bug 105992 has been marked as a duplicate of this bug. ***
will this make the mozilla0.9.6?
Yes, it will be in 0.9.6.
i see this bug again on win2k in build ID : 2002-03-11-11trunk build and 2002-03-11-0.9.9 branch build. the patch that fixed this bug was supposed to make it to the mozilla 0.9.6 branch. Re-opening bug. Removing keyword vbranch.
Status: RESOLVED → REOPENED
Keywords: vbranch
Resolution: FIXED → ---
my mistake :-| this bug regarding false line breaks is fixed in the above mentioned builds comment # 32. What I saw was the caret moving one pixel to the right (described in original comment). Will write up another bug for that. Resolving this bug fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
verified
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: