Closed Bug 369959 Opened 18 years ago Closed 18 years ago

Backspace deletes the character in front of the caret, after deleting a span

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: uriber, Assigned: uriber)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file)

Steps to reproduce: - Open attachment 254610 [details] (from bug 369938, reported by Tom L. Snyder). - Place the caret right before the "b" in "backspace" on the first line. - Press backspace 8 times. - Notice that the "b" was deleted. This regressed between 2006-08-21-04 and 2006-08-22-04: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-08-21+03%3A00+&maxdate=2006-08-22+05%3A00+&cvsroot=%2Fcvsroot Nothing in this range seems obvious.
Looks like a regression from bug 348854.
Assignee: selection → nobody
Blocks: 348854
Component: Selection → Editor
Attached patch patchSplinter Review
The is what the patch to bug 345587 originally had. The patch in bug 348854 added a GetCharAfter() instead of a GetCharBefore().
Assignee: nobody → uriber
Status: NEW → ASSIGNED
Attachment #254658 - Flags: superreview?(bryner)
Attachment #254658 - Flags: review?
Attachment #254658 - Flags: review? → review?(brettw)
Comment on attachment 254658 [details] [diff] [review] patch Looks good.
Attachment #254658 - Flags: review?(brettw) → review+
Attachment #254658 - Flags: superreview?(bryner) → superreview+
Checking in mozilla/editor/libeditor/html/nsWSRunObject.cpp; /cvsroot/mozilla/editor/libeditor/html/nsWSRunObject.cpp,v <-- nsWSRunObject.cpp new revision: 1.43; previous revision: 1.42
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
OS: Mac OS X → All
Hardware: Macintosh → All
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: