Closed Bug 5782 Opened 25 years ago Closed 25 years ago

A crash occurs after positioning the cursor before the first character and pressing backspace/delete key

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: chrispetersen, Assigned: mozeditor)

Details

Version: Apprunner Build: April 29th Build (1999042908) Platform: All Expected Results: After positioning the cursor before the first character an pressing backspace/delete key, a crash should NOT occur. What I got: With the cursor in this position, pressing the backspace/delete key causes a crash. Steps to reproduce: 1) Launch Apprunner. 2) From the Tasks menu, select the Editor menu. 3) Click in the document before the first character in the heading. 4) When the I-beam cursor is flashing, press the delete key (Mac) or backspace (Windows & Linux) twice. 5) The crash should occur.
Assignee: kostello → jfrancis
Target Milestone: M5
All type in bugs are now assigned to Joe Francis, Set milestone to M5
QA Contact: 4079 → 4144
Chris, this is your bug, assigning youas qa_contact.
Status: NEW → ASSIGNED
have fix - awaiting checkin permission
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
problem is that typing rules code for deletion is detecting that it is at the beginning of a node, and trying to look at the previous node in order to figure out what to do. But there was no check for null on the previous node, ie, if there was no previous node, you crashed. an identical bug was in the forward deletion logic. Both are fixed by checking for null previous (or next) node, and cancelling the deletion if so.
Status: RESOLVED → VERIFIED
Fixed in June 2 Build.
You need to log in before you can comment on or make changes to this bug.