Closed Bug 418498 Opened 18 years ago Closed 16 years ago

"ASSERTION: Already have a document. Unbind first!" with XBL

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 460876

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion)

Attachments

(2 files)

Attached file stack trace
I have a testcase that uses XBL and sometimes triggers one or both of: ###!!! ASSERTION: Already have a document. Unbind first!: '!GetCurrentDoc() && !IsInDoc()', file /Users/jruderman/trunk/mozilla/content/base/src/nsGenericDOMDataNode.cpp, line 568 ###!!! ASSERTION: Already have a document. Unbind first!: '!GetCurrentDoc()', file /Users/jruderman/trunk/mozilla/content/base/src/nsGenericElement.cpp, line 1981 I can reproduce reliably enough to extract bits of information from gdb, but not reliably enough to make a reduced testcase. How enlightening is the attached stack trace? These assertions were added in 2005 in bug 286000.
Hmm.... I thought we already had this on file for situations when the XUL forces binding attachment. Not sure. smaug might know?
Here's a testcase that triggers the bug by forcing a garbage collection at the right moment. Related to bug 429623?
This bug might be related to some too-much-recursion crashes I've been seeing with nsXULElement::BindToTree.
The testcase now triggers: Error: uncaught exception: [Exception... "Operation is not supported" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "file:///Users/jruderman/Downloads/f4.xul Line: 13"] Which means it is a duplicate.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: