Closed Bug 768765 Opened 14 years ago Closed 14 years ago

"Assertion failure: selection->Collapsed() (Selection not collapsed after delete)" with multiple selections, odd history

Categories

(Core :: DOM: Editor, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: jruderman, Assigned: ayg)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Assertion failure: selection->Collapsed() (Selection not collapsed after delete), at editor/libeditor/base/nsEditor.cpp:4457
Attached file stack trace —
Attached patch Patch — — Splinter Review
The assert is wrong: the selection might legitimately have multiple ranges that are all collapsed, in which case it won't be itself collapsed. So let's instead just assert that the anchor/focus range is collapsed. Try: https://tbpl.mozilla.org/?tree=Try&rev=99ea4154c5bf
Assignee: nobody → ayg
Status: NEW → ASSIGNED
Attachment #638299 - Flags: review?(ehsan)
Attachment #638299 - Flags: review?(ehsan) → review+
Flags: in-testsuite+
Target Milestone: --- → mozilla16
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: