Open Bug 55856 Opened 24 years ago Updated 1 year ago

Assertion in range code when deleting last list items

Categories

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

defect

Tracking

()

People

(Reporter: sfraser_bugs, Unassigned)

References

Details

(Whiteboard: [behavior])

Attachments

(1 file)

I see the following assertion in range code:

###!!! ASSERTION: nsRange::IsIncreasing: 'Not Reached', file nsRange.cpp, line 
667

if I:
1. Load the attachment in composer
2. Select over all the list items
3. Delete them, leaving a single empty (hollow circle) list item
4. Hit delete again to remove the remaining list item.

Starting source:
<ul>
<li>
<div class="moz-text-html" style="font-family: Times; font-size: 12px; ">
<ul>
<li>Fixed bug 1234</li>
<li>Did some more work</li>
<li>Did other work</li>
</ul>
</div>
</li>
</ul>

Source after step 3:

<ul>
<li>
<div class="moz-text-html" style="font-family: Times; font-size: 12px; ">
<ul>
<li><br>
</li>
</ul>
</div>
</li>
</ul>

[note, when at this stage, and I go to HTML source and back, going back causes 
the following assertion:
###!!! ASSERTION: nsRange::PopRanges() got error from SetEnd(): 
'NS_SUCCEEDED(res)', file nsRange.cpp, line 890
]

HTML source after getting the assertion:

<ul>
<li>
<div class="moz-text-html" style="font-family: Times; font-size: 12px; ">
<ul>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
</ul>
</div>
</li>
</ul>

Wow, where did those nbsp's come from?
moving to future until we can sort through fix dates
Target Milestone: --- → Future
moz 0.9
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9
moving a bunch of 0.9 bugs to 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
Target Milestone: mozilla0.9.1 → mozilla0.9.2
moving to 1.0
Keywords: correctness
Whiteboard: [behavior]
Target Milestone: mozilla0.9.2 → mozilla1.0
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 
(you can query for this string to delete spam or retrieve the list of bugs I've 
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
The trunk is the wave of the future!
Target Milestone: mozilla1.0.1 → mozilla1.1beta
The days of having a half dozen milestones out in front of us to divide bugs 
between seem to be gone, though I dont know why.  Lumping everything together as 
far out as I can.  I'll pull back things that I am working on as I go.
Target Milestone: mozilla1.1beta → mozilla1.2beta
similar report from charlie:
11:27 AM:    cmanske: jfrancis_: Do this: start numbered list, type 3 lines,
select all lines, change type via format menu to "Definition" ...
11:26 AM:    cmanske: asserts at:
11:27 AM:    cmanske: nsVoidArray::ElementAt(int 1) line 78 + 35 bytes
11:27 AM:    cmanske: nsRange::IsIncreasing(nsIDOMNode *
11:27 AM:    cmanske: nsRange::CompareBoundaryPoints(nsR
11:27 AM:    cmanske: nsHTMLEditRules::UpdateDocChangeRang
This is really annoying!
Keywords: nsbeta1
Hardware: Macintosh → All
Blocks: 162874
Target Milestone: mozilla1.2beta → M1
differentiating bug severity of my most critical bugs vai abuse of milestone field
M2: severe
M1: very severe and/or fix in hand
Target Milestone: M1 → M2
nsbeta1-
Keywords: nsbeta1nsbeta1-
happens on all operating systems
OS: Mac System 8.5 → All
QA Contact: sujay → editor
Assignee: mozeditor → nobody
Status: ASSIGNED → NEW

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: P3 → P5

I think that this is not reproducible anymore.

Flags: needinfo?(masayuki)

Hmm, I don't hit assertion anymore, but I see the following warnings:

[Child 7892, Main Thread] WARNING: '!mRightContent->GetParentNode()', fileeditor/libeditor/HTMLEditorDeleteHandler.cpp:3512
[Child 7892, Main Thread] WARNING: AutoBlockElementsJoiner::JoinBlockElementsInSameParent() failed: 'result.isOk()', file[editor/libeditor/HTMLEditorDeleteHandler.cpp:654](HTMLEditorDeleteHandler.cpp
[Child 7892, Main Thread] WARNING: AutoBlockElementsJoiner::Run() failed: 'result.isOk()', fileeditor/libeditor/HTMLEditorDeleteHandler.cpp:3296
[Child 7892, Main Thread] WARNING: AutoDeleteRangesHandler::HandleDeleteNonCollapsedRanges() failed: 'result.isOk()', fileeditor/libeditor/HTMLEditorDeleteHandler.cpp:1694
[Child 7892, Main Thread] WARNING: AutoDeleteRangesHandler::Run() failed: 'result.isOk()', fileeditor/libeditor/HTMLEditorDeleteHandler.cpp:1164
[Child 7892, Main Thread] WARNING: TextEditor::HandleDeleteSelection() failed: file editor/libeditor/EditorBase.cpp:4230
[Child 7892, Main Thread] WARNING: EditorBase::DeleteSelectionAsSubAction() failed: 'NS_SUCCEEDED(rv)', file editor/libeditor/EditorBase.cpp:4193

Flags: needinfo?(masayuki)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: