Closed Bug 399712 Opened 18 years ago Closed 18 years ago

[FIX]"ASSERTION: Native anonymous node with wrong binding parent"

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
When I load the testcase and wait a few seconds, I see: ###!!! ASSERTION: Native anonymous node with wrong binding parent: '!aContent->IsNativeAnonymous()', file /Users/jruderman/trunk/mozilla/content/base/src/nsContentUtils.cpp, line 3702 I'm not sure this is a recent regression, but if it is, I suspect bug 378866.
That assertion was just added in Bug 345609.
Well, this is fun. Spellcheck is getting computed style on a native anonymous node that's already been removed from the document (because the relevant frame is gone). So the binding parent is null, while IsNativeAnonymous() is true. I filed bug 399791 on spell-check. I guess we should make this a warning for now, until that's fixed, but in general, I do think we should be asserting in this situation.
Attachment #284859 - Flags: superreview?(jst)
Attachment #284859 - Flags: review?(jst)
Assignee: nobody → bzbarsky
OS: Mac OS X → All
Hardware: PC → All
Summary: "ASSERTION: Native anonymous node with wrong binding parent" → [FIX]"ASSERTION: Native anonymous node with wrong binding parent"
Comment on attachment 284859 [details] [diff] [review] "fix" to quiet down the assert Fun. r+sr+a=jst
Attachment #284859 - Flags: superreview?(jst)
Attachment #284859 - Flags: superreview+
Attachment #284859 - Flags: review?(jst)
Attachment #284859 - Flags: review+
Attachment #284859 - Flags: approval1.9+
Fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Crashtest checked in. (I have the testcase run for three seconds.)
Flags: in-testsuite+
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: