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)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
M5
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.
Updated•25 years ago
|
Assignee: kostello → jfrancis
Target Milestone: M5
Comment 1•25 years ago
|
||
All type in bugs are now assigned to Joe Francis, Set milestone to M5
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•25 years ago
|
||
have fix - awaiting checkin permission
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•25 years ago
|
||
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.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•25 years ago
|
||
Fixed in June 2 Build.
You need to log in
before you can comment on or make changes to this bug.
Description
•