Closed Bug 274857 Opened 20 years ago Closed 20 years ago

Pressing Ctrl+Backspace twice in an RTL textarea crashes the browser

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: bugzillamozilla, Assigned: ginnchen+exoracle)

References

()

Details

(Keywords: crash, regression, rtl)

Attachments

(2 files)

To reproduce:

1. Open http://oren.gomen.org/mozilla/blank_textareas.html
2. Place the caret in the RTL textarea (upper one)
3. Press Ctrl+Backspace twice

Result: Mozilla crashes.

UA: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20041215

This bug doesn't occur with v1.7.x nor with FF 1.x. I'll try to find the exact
build where it regressed a bit later today.

Crash dump coming.

Prog.
Attached file Crash details
Flags: blocking1.8a6?
Backing out bug 256252 prevents the crash.
CCing roc and ginn per comment 2.
Depends on: 256252
Keywords: crash
It seems there's a dead circle in nsTextFrame::PeekOffset when pressing
ctrl+left/right arrow or ctrl+backspace.

I'll look into it.
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
back out one line for RTL,
now ctrl+left/right/backspace does same behaviour with Mozilla 1.4.

For LTR, we should not set mAmount to eSelectNoAmount, otherwise it will break
linux/unix testcase 1 and windows testcase 2 in bug 256252.
Assignee: mkaply → ginn.chen
Attachment #168929 - Flags: superreview?(roc)
Attachment #168929 - Flags: review?(roc)
Attachment #168929 - Flags: superreview?(roc)
Attachment #168929 - Flags: superreview+
Attachment #168929 - Flags: review?(roc)
Attachment #168929 - Flags: review+
Checking in nsFrame.cpp;
/cvsroot/mozilla/layout/generic/nsFrame.cpp,v  <--  nsFrame.cpp
new revision: 3.532; previous revision: 3.531
done

I think we may remove these lines, after solving Bug 207186.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Flags: blocking1.8a6?
Resolution: --- → FIXED
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: