Closed
Bug 369560
Opened 18 years ago
Closed 17 years ago
###!!! ASSERTION: *** XBL doc with no root element! Something went horribly wrong! ***: 'Error', file m:/trunk/mozilla/content/xbl/src/nsXBLService.cpp, line 417
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: WeirdAl, Assigned: WeirdAl)
References
()
Details
(Keywords: assertion, testcase)
Attachments
(4 files)
3.65 KB,
text/plain
|
Details | |
1.26 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
|
Details | Diff | Splinter Review |
2.91 KB,
application/octet-stream
|
Details | |
3.10 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
I hit this assertion visiting the URL above. Firefox 1.9a2 (frozen code, not off the release), Windows.
Assignee | ||
Comment 1•18 years ago
|
||
How interesting. At nsXBLStreamListener::Load(nsIDOMEvent * aEvent=0x04bb4738) Line 417 + 0x1c bytes C++, we have the following for documentURI->mSpec: + mData 0x080e5bc8 "http://static.technorati.com/css/moz-text-overflow.xml" char * The XML file referenced is a 404.
Comment 2•18 years ago
|
||
This assertion is bogus. There are all sorts of reasons an XML document could have no root element. I think we should just remove the assert.
Agreed, though we should keep it as a warning since this usually shouldn't happen.
Assignee | ||
Comment 4•18 years ago
|
||
per comment 3, NS_ERROR -> NS_WARNING
Assignee: general → ajvincent
Status: NEW → ASSIGNED
Attachment #254319 -
Flags: superreview?
Attachment #254319 -
Flags: review?
Assignee | ||
Updated•18 years ago
|
Attachment #254319 -
Flags: superreview?(jonas)
Attachment #254319 -
Flags: superreview?
Attachment #254319 -
Flags: review?(jonas)
Attachment #254319 -
Flags: review?
Attachment #254319 -
Flags: superreview?(jonas)
Attachment #254319 -
Flags: superreview+
Attachment #254319 -
Flags: review?(jonas)
Attachment #254319 -
Flags: review+
Assignee | ||
Updated•18 years ago
|
Whiteboard: [checkin needed]
Comment 5•17 years ago
|
||
mozilla/content/xbl/src/nsXBLService.cpp 1.22
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Why was this marked in-testsuite-?
Comment 7•17 years ago
|
||
Because I thought that *absence* of bogus assertion is not something worth testing.
Testing that invalid docs don't assert seem like a good thing to me.
Comment 9•17 years ago
|
||
OK then, I'll ask sayrer if there's a way to test for assertions yet. BTW XBL code has lots of NS_ERRORS for malformed content, I hit three when making a testcase.
Flags: in-testsuite- → in-testsuite?
Comment 10•17 years ago
|
||
For the reference, I talked to sayrer a while ago and he said the test harnesses don't currently support testing for assertions and it's not a top priority. I filed bug 370767 for that, but we might want to just check a simple testcase in and hope that developers will run the test suite in debug builds with assertions not suppressed :)
Comment 11•17 years ago
|
||
Here's the test I had in my tree, sorry it's not in the patch format - CVS sucks for making it hard to make patches that add new directories. If anyone thinks it should be checked in, feel free to r+ :)
Comment 12•12 years ago
|
||
FWIW, we trigger this warning when running layout/style mochitests, e.g. in this tbpl log: https://tbpl.mozilla.org/php/getParsedLog.php?id=10222026&tree=Firefox { 11722 INFO TEST-PASS | /tests/layout/style/test/test_ch_ex_no_infloops.html | Setting 'text-rendering' to '2ch' should not cause infinite loop - auto should not equal WARNING: *** XBL doc with no root element! Something went horribly wrong! ***: file ../../../../content/xbl/src/nsXBLService.cpp, line 405 11723 INFO TEST-END | /tests/layout/style/test/test_ch_ex_no_infloops.html | finished in 1434ms } It frightened me a little when I first noticed it locally (thought I might've broken something), due to the asterisks and the "horribly wrong". Given comment 2 & comment 3 here, we could probably stand to soften the language a bit. :)
Comment 13•12 years ago
|
||
Here's a followup to make this less scary sounding. Basically just s/Something went horribly wrong/this usually shouldn't happen/ based on comment 3.
Attachment #607787 -
Flags: review?(bzbarsky)
Comment 14•12 years ago
|
||
Comment on attachment 607787 [details] [diff] [review] followup r=me
Attachment #607787 -
Flags: review?(bzbarsky) → review+
Comment 15•12 years ago
|
||
(Sorry, the DestroyFrom chunk in this patch is clearly unrelated -- I'll remove that before landing)
Comment 16•12 years ago
|
||
Landed followup to soften the warning: https://hg.mozilla.org/integration/mozilla-inbound/rev/5b3f94379f5c
You need to log in
before you can comment on or make changes to this bug.
Description
•