Closed Bug 388712 Opened 17 years ago Closed 17 years ago

[FIXr]"ASSERTION: Walked too far?" with html:form, html:label, and svg:use

Categories

(Core :: SVG, defect, P2)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

To trigger the assertion, close or reload the testcase.

###!!! ASSERTION: Walked too far?: 'nsContentUtils::IsInSameAnonymousTree(this, content)', file /Users/jruderman/trunk/mozilla/content/html/content/src/nsGenericHTMLElement.cpp, line 1244

The assertion was added yesterday in bug 388386.
Hmm.  So we have anonymous content like so:

 <form><label></form>

and we're unbinding the whole thing.  The behavior here is still right (we're walking to the right place, that being the form, when the label is unbound), but the assertion is failing because the form has already been unbound and hence has a null binding parent.

I guess what I'll do is restore the IndexOf() checks for this case, debug-only.
Attached patch Like soSplinter Review
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #272899 - Flags: superreview?(jst)
Attachment #272899 - Flags: review?(jst)
Priority: -- → P2
Summary: "ASSERTION: Walked too far?" with html:form, html:label, and svg:use → [FIX]"ASSERTION: Walked too far?" with html:form, html:label, and svg:use
Target Milestone: --- → mozilla1.9beta1
Attachment #272899 - Flags: superreview?(jst)
Attachment #272899 - Flags: superreview+
Attachment #272899 - Flags: review?(jst)
Attachment #272899 - Flags: review+
Summary: [FIX]"ASSERTION: Walked too far?" with html:form, html:label, and svg:use → [FIXr]"ASSERTION: Walked too far?" with html:form, html:label, and svg:use
Comment on attachment 272899 [details] [diff] [review]
Like so

Debug-only change to prevent incorrect assertions and make Jesse's testing yet more peaceful.  Risk is basically none.
Attachment #272899 - Flags: approval1.9?
Comment on attachment 272899 [details] [diff] [review]
Like so

a19=dbaron
Attachment #272899 - Flags: approval1.9? → approval1.9+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Crashtest checked in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: