Closed Bug 460686 Opened 16 years ago Closed 16 years ago

ASSERTION: "Shallow unbind won't clear document and binding parent on kids!" when opening "about:sessionrestore"

Categories

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

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: whimboo, Unassigned)

References

()

Details

(Keywords: assertion)

Attachments

(1 file)

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081019 Minefield/3.1b2pre ID:20081019123054

Following assertion is triggered each time "about:sessionrestore" is opened: 

###!!! ASSERTION: Shallow unbind won't clear document and binding parent on kids!: 'aDeep || (!GetCurrentDoc() && !GetBindingParent())', file /Users/henrik/mozilla/mozilla-central/src/content/base/src/nsGenericElement.cpp, line 2654

Boris, how can I check if its the same issue like bug 397849? Placing a breakpoint to the line where the assertion is raised doesn't stop the execution. How can I obtain the stack? Thanks.
Flags: blocking1.9.1?
Unfortunately, the stack won't tell you much: it'll just tell you that you're in an element destructor.  That said, placing a breakpoint in NS_DebugBreak_P itself (or just using XPCOM_DEBUG_BREAK=trap) should let you get a stack to the assert..
Not blocking 1.9.1, but we should get this fixed for a dot release.
Flags: wanted1.9.0.x?
Flags: blocking1.9.1?
Flags: blocking1.9.1-
Attached file stack
Here the stack for the mentioned assertion. Boris, does it help you?
Not per se, but can you look up which binding we're loading in that LoadBindings call and what node we're attaching it to (presumably XUL, so want the Tag() for it).
Boris, I hope that I fetched the correct information here.

The mSpec of the URL which is used for the GetBinding call is "chrome://global/content/bindings/tree.xml#treecols". I'm not really sure what you wanna have in the second part of your answer. Where do I have to look for it? Inside GenerateAnonymousContent()? Which variable I have to inspect?
The first argument to LoadBindings() should be an nsIContent.  I'd like to know what concrete type it is (set print object on, then examine the pointer) and what its tagname is (call Tag() on the pointer, and then dig around inside the resulting nsIAtom object).
I think johnny meant wanted1.9.1.x, 1.9.0 doesn't have about:sessionrestore
Flags: wanted1.9.0.x? → wanted1.9.1?
Bug 461027 might have fixed this (just landed). Anyone willing to retest this?
This is WFM (or fixed) now. If someone can still reproduce, please reopen.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
That has been fixed on trunk. Tested with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20081221 Minefield/3.2a1pre ID:20081221222459

We have a patch, so marking it fixed.

Smaug, has the patch on bug 461027 also been pushed to mozilla1.9.1? Can you also add it to the depends on list? I cannot access it.
Status: RESOLVED → VERIFIED
Resolution: WORKSFORME → FIXED
Target Milestone: --- → mozilla1.9.2a1
Component: Content → DOM
QA Contact: content → general
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: