Closed Bug 80937 Opened 24 years ago Closed 24 years ago

right arrow at end of textarea crashes

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: olaf, Assigned: mjudge)

References

Details

(Keywords: crash, regression)

Attachments

(2 files)

Pressing the right arrow key at the end of the text in a TEXTAREA sometimes wraps the cursor around to the start of the text, but in most cases causes segfault. Linux CVS on 20010515.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
I cannot reproduce on Linux RedHat 6.2 build 2001-05-15-08-trunk...
caused by or related to fix for #68367? -->mjudge
Assignee: rods → mjudge
Keywords: regression
Just filed related/duplicate bug. Difference is that there is no crash. See #81379: Cursor wraps from the end of text to the beginning in a textarea.
*** Bug 81379 has been marked as a duplicate of this bug. ***
I'm seeing the wrapping (not the crash) on all textareas and in the text input in the bugzilla sidebar.
*** Bug 80980 has been marked as a duplicate of this bug. ***
setting to 9.1
Priority: -- → P1
Target Milestone: --- → mozilla0.9.1
*** Bug 81721 has been marked as a duplicate of this bug. ***
*** Bug 81760 has been marked as a duplicate of this bug. ***
Crashes in gklayout.dll on windows, setting all/all. Updating summary to cover two cases that seem to be covered by this bug.
OS: Linux → All
Hardware: PC → All
Summary: right arrow at end of TEXTAREA -> crash → right arrow at end of textarea crashes; right arrow at end of textbox wraps
I can't reproduce this on win98 using the build from 2001051720
bingo! I can reproduce this every time with these steps. very easily: 1) launch netscape 2) jump to http://bugzilla.mozilla.org 3) Enter a new bug report 4) choose product = Browser 4) click in the "Description" field 5) right arrow CRASH!
more info: happens even though you have text in the description. found using 5/22 build on Win 98 only happens for Description field in New bug page talkback report ID = 30768588
*** Bug 82151 has been marked as a duplicate of this bug. ***
It crashes in nsFrame::GetFrameFromDirection(), at 3733: result = lastFrame->GetNextSibling(&lastFrame); because lastFrame is null when lineFrameCount == 4. "it" (thanks for the descriptive name) here is a nsTableRowGroupFrame.
Note that the textarea wrapping problem only happens if the text is long enough for the textarea to have a vertical scrollbar. It doesn't happen when the textarea doesn't have a scrollbar.
Additional note to previous note by mpt: On linux, the scrollbar appears immediately when a single character is entered to the textarea -> a single character is enough to replicate this behaviour.
got a fix
Status: NEW → ASSIGNED
marking fix in hand
Whiteboard: FIXINHAND
oops just realized i removed an assertion. that was not necessary and I would like to leave it. here is a simpler patch.
r=cmanske
a= asa@mozilla.org on behalf of drivers
*** Bug 82589 has been marked as a duplicate of this bug. ***
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Most of the dups here are about the wrapping. Is that fixed now?
No, the wrapping isn't fixed. I reopened bug 82151 for that case, since (in all modesty:-) I think the steps to reproduce for that bug are the most precise of the various wrapping duplicates.
verifying fixed on build 2001-05-31-08-trunk
Status: RESOLVED → VERIFIED
If it got fixed, then it subsequently got un-fixed. It's happening on build 2001112009 under Windows 98. The conditions described earlier seem to continue to hold: Enter enough text for the vertical scrollbar to appear, then right-arrow past the end of the textarea. The cursor will (usually) wrap to the beginning of the textarea. Other neat trick you can try: Enter more than one line of text into a text area; leave a hanging line (unterminated with a carriage return). Press up-arrow until you reach the beginning (first character) of the textarea. Press down-arrow until you are on the last line. Press down-arrow once more; the cursor will move to the end of the line. Then press right arrow; the cursor will wrap to the beginning of the line. Even more fun: Enter lines of text. Press left-arrow a few times to back up, then press right-arrow repeatedly to move to the end of the line; the cursor will stay there. Now press down-arrow; on my machine, the cursor will move backwards about one pixel.
Leo--please see bug 82151
Summary: right arrow at end of textarea crashes; right arrow at end of textbox wraps → right arrow at end of textarea crashes
Whiteboard: FIXINHAND
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: