Closed Bug 475132 Opened 16 years ago Closed 14 years ago

"ASSERTION: selection could not be collapsed after insert" with contentEditable, execCommand, tables

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
Loading the testcase:
###!!! ASSERTION: selection could not be collapsed after insert.: '(NS_SUCCEEDED(result))', file editor/libeditor/base/CreateElementTxn.cpp, line 153
###!!! ASSERTION: transaction did not execute properly: '(NS_SUCCEEDED(result))', file editor/libeditor/base/nsEditor.cpp, line 709
###!!! ASSERTION: null node passed to nsEditor::Tag(): 'aNode', file editor/libeditor/base/nsEditor.cpp, line 3893

Unloading the testcase:
###!!! ASSERTION: Please remove this from the document properly: '!IsInDoc()', file content/base/src/nsGenericElement.cpp, line 1758
Is this bug only about the assertion in the summary, or all of them?

Because the assertion in the summary happens a lot in tinderbox logs, randomly.  I suspect it may be related to cycle collection, though I don't have a useful stack for it.
I intended the bug to be about all of the assertions, but you can do what you want with it :)
I filed bug 563980 to cover that assertion being frequently random on tinderbox.
It seems to be the no pres shell case.
Summary: "ASSERTION: Please remove this from the document properly" with contentEditable, execCommand, tables → "ASSERTION: selection could not be collapsed after insert" with contentEditable, execCommand, tables
Bug 563980 should fix the last of the assertions (the one in the summary), but the others remain (although I don't see them every time I load the testcase).
WFM. I don't get any assertions when I load the testcase. I'll file new bugs if I come across them again ;)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: