Open
Bug 287761
Opened 20 years ago
Updated 2 years ago
ASSERTION: we reached a null node ancestor !: 'node' when typing any letter
Categories
(Core :: DOM: Editor, defect)
Tracking
()
REOPENED
People
(Reporter: mcsmurf, Unassigned)
Details
(Keywords: assertion)
Attachments
(2 files)
|
1.48 KB,
patch
|
Details | Diff | Splinter Review | |
|
87 bytes,
application/xhtml+xml
|
Details |
When you open composer and type any letter, this assertion appears on every letter you type: ###!!! ASSERTION: we reached a null node ancestor !: 'node', file d:/mozilla/tree6 /mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp, line 1426 It also appears when deleting a letter or for example opening the Form Properties Dialog on a <form>. This makes composer next to unusable in a debug build on Windows (except you disable the assertions popup). At the beginning of the function aElement is 0x00000000 and aNode has the childs [nsHTMLBodyElement] and nsISupports. This assertion happens on the ~60th call to nsHTMLCSSUtils::GetElementContainerOrSelf (why does this function get called so often just for typing in one letter?). After the assertion, this function only gets called two more times (before the letter finally appears ;).
Comment 1•20 years ago
|
||
nsHTMLUtils::GetComputedProperty() doesn't like working on the document node. Probably the documentation should be updated or the code tweaked to ASSERT this directly. I didn't see any recent changes which caused this "bug", but it can't have been too long ago...I got the ASSERT as soon as I started the debugger.
Comment 2•20 years ago
|
||
Steve, is there a reason you haven't asked for review on this patch? It'd be nice to see this assertion be squashed.
Comment 3•20 years ago
|
||
I forgot? I guess I don't know who to ask for a review and expected the owner to do something.
Comment 4•20 years ago
|
||
Comment on attachment 182810 [details] [diff] [review] patch idea Neil, can you review?
Attachment #182810 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 5•20 years ago
|
||
Comment on attachment 182810 [details] [diff] [review] patch idea Neil informs me he's a composer peer, not a editor peer.
Attachment #182810 -
Flags: review?(neil.parkwaycc.co.uk) → review?(brade)
Comment 6•20 years ago
|
||
I can prevent the assertion by unchecking "Use CSS styles..." in editor prefs, or by setting a background color. Maybe bug 92686 is related? The time frame is right. Unfortunately the patch doesn't reverse cleanly against current trunk.
Comment 7•20 years ago
|
||
The workarounds make sense, but I don't see the connection with bug 92686. Most of the C++ changes for bug 92686 are in nsHTMLEditRules.cpp which is not in the call stack.
Comment 8•19 years ago
|
||
I just hit this assertion by starting Composer from Navigator in the suite. I did not have a chance to type any characters.
Keywords: assertion
Comment 9•19 years ago
|
||
Is the patch still relevant? (I think so, but shouldn't it have gotten a review by now?)
Updated•18 years ago
|
QA Contact: bugzilla → editor
Updated•18 years ago
|
Assignee: mozeditor → nobody
Comment 10•17 years ago
|
||
Ping?
Comment 11•17 years ago
|
||
Ping ping?
| Reporter | ||
Updated•17 years ago
|
Attachment #182810 -
Flags: review?(brade)
| Reporter | ||
Comment 12•17 years ago
|
||
I tried all the ways from Comment 0 and cannot reproduce the assertion anymore. Closing as wfm (though the assertion from Bug 399245 makes the HTML Tags edit mode quite annoying as it asserts all the time).
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Comment 13•17 years ago
|
||
Sorry, I still see this assertion with this testcasen on current trunk build. I was hoping the patch would fix it: ###!!! ASSERTION: bad action nesting!: 'mActionNesting>0', file c:/mozilla-build /mozilla/editor/libeditor/html/nsHTMLEditRules.cpp, line 385 ###!!! ASSERTION: we reached a null node ancestor !: 'node', file c:/mozilla-bui ld/mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp, line 1421 WARNING: NS_ENSURE_TRUE(node) failed: file c:/mozilla-build/mozilla/editor/libed itor/html/nsHTMLCSSUtils.cpp, line 1422
Updated•17 years ago
|
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
| Reporter | ||
Comment 14•17 years ago
|
||
Ah, why not attach your test case then before I close the bug ;-)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•