Closed Bug 397561 Opened 17 years ago Closed 14 years ago

"ASSERTION: An XBL file is malformed. Did you forget the XBL namespace on the bindings tag"

Categories

(Core :: XBL, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, helpwanted, testcase)

Attachments

(3 files)

Attached file testcase
This testcase triggers an assertion.  I think the assertion is just bogus.

###!!! ASSERTION: An XBL file is malformed.  Did you forget the XBL namespace on the bindings tag?: 'Error', file /Users/jruderman/trunk/mozilla/content/xbl/src/nsXBLService.cpp, line 404

It also triggers a gigantic leak, but I think that's covered by bug 324465 and bug 394052.

I've also seen the assertion (and leak) happen in cases where afaik the XBL isn't actually malformed, but I can't reproduce that reliably, and it's probably a separate issue from both "the assertion shouldn't be an assertion" and the leak.
I believe this assertion was added (as were many other such assertions) back when it was important to debug issues with chrome XBL.  We may want to make the assert only happen for chrome bindings or something.
Keywords: helpwanted
Blocks: 404077
Attachment #323031 - Flags: review?(bzbarsky)
Comment on attachment 323031 [details] [diff] [review]
Assert if chrome, JS console error otherwise

Please make the ReportToConsole happen for chrome too.  Other than that, looks ok.
Attachment #323031 - Flags: review?(bzbarsky) → review-
Here's a patch to change the assertion to a warning; it should never have been an assertion at all.  I want this in because this assertion happens randomly on some crashtests, and I'd like to fix random assertion counts ASAP.
Attachment #443499 - Flags: review?(bzbarsky)
And I can merge the other patch on top of this one too.

(I found this bug after writing the patch.)
Comment on attachment 443499 [details] [diff] [review]
change assertion to warning

r=bzbarsky (on the merged patch too).
Attachment #443499 - Flags: review?(bzbarsky) → review+
OS: Mac OS X → All
Priority: -- → P4
Hardware: x86 → All
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: