Closed Bug 388172 Opened 17 years ago Closed 17 years ago

"ASSERTION: GetCurrentDoc should have returned a doc" and more with contentEditable, tables

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 395340

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached file testcase
Loading the testcase triggers four assertions:

###!!! ASSERTION: GetCurrentDoc should have returned a doc: '!root->IsNodeOfType(nsINode::eDOCUMENT)', file mozilla/content/base/src/nsRange.cpp, line 587

###!!! ASSERTION: selection could not be collapsed after insert.: '(NS_SUCCEEDED(result))', file mozilla/editor/libeditor/base/CreateElementTxn.cpp, line 153

###!!! ASSERTION: transaction did not execute properly: '(NS_SUCCEEDED(result))', file mozilla/editor/libeditor/base/nsEditor.cpp, line 737

###!!! ASSERTION: Already have a document.  Unbind first!: '!GetCurrentDoc()', file mozilla/content/base/src/nsGenericElement.cpp, line 1932

The third assertion also shows up in bug 382210 and bug 382527, but the rest of the assertions are ones I usually don't see.
I'm going to dupe this to bug 395340, it's the same issue and bug 395340 has a patch.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: