Closed Bug 487554 Opened 15 years ago Closed 11 years ago

ASSERTION: JoinNode called with a non-text left node!: '0'

Categories

(Core :: DOM: Editor, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

()

Details

(Keywords: assertion)

STEPS TO REPRODUCE
1. load http://www.mozilla.org/editor/midasdemo/
2. create a bulleted list like so:
     * 123
     * 456
3. select the text "2345"
4. type BACKSPACE

ACTUAL RESULT
###!!! ASSERTION: JoinNode called with a non-text left node!: '0', file editor/txtsvc/src/nsTextServicesDocument.cpp, line 2603

EXPECTED RESULT
One list item with the text "16" (OK), no assertion

PLATFORMS AND BUILDS TESTED
Bug occurs in Firefox mozilla-central on Linux

ADDITIONAL INFORMATION
It's NOT a regression from bug 157546, fwiw.
test_backspace_delete.xul triggers the same assertion for me, FWIW.  I have not bothered to figure out what it is trying to do in detail, but the backtrace makes it sound like deletion of selection is involved:

###!!! ASSERTION: JoinNode called with a non-text left node!: 'Error', file editor/txtsvc/src/nsTextServicesDocument.cpp, line 1939
nsVoidArray::Count() const (dist/include/nsVoidArray.h:63)
nsHTMLEditRules::JoinNodesSmart(nsIDOMNode*, nsIDOMNode*, nsCOMPtr<nsIDOMNode>*, int*) (editor/libeditor/html/nsHTMLEditRules.cpp:7338)
nsHTMLEditRules::JoinBlocks(nsCOMPtr<nsIDOMNode>*, nsCOMPtr<nsIDOMNode>*, int*) (editor/libeditor/html/nsHTMLEditRules.cpp:2819)
nsHTMLEditRules::WillDeleteSelection(nsISelection*, short, int*, int*) (editor/libeditor/html/nsHTMLEditRules.cpp:2545)
nsHTMLEditRules::WillDoAction(nsISelection*, nsRulesInfo*, int*, int*) (editor/libeditor/html/nsHTMLEditRules.cpp:666)
nsPlaintextEditor::DeleteSelection(short) (editor/libeditor/text/nsPlaintextEditor.cpp:723)
nsDeleteCommand::DoCommand(char const*, nsISupports*) (editor/libeditor/base/nsEditorCommands.cpp:601)
nsControllerCommandTable::DoCommand(char const*, nsISupports*) (embedding/components/commandhandler/src/nsControllerCommandTable.cpp:191)
~nsCOMPtr (dist/include/nsCOMPtr.h:865)
NS_InvokeByIndex_P (xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:210)
CallMethodHelper::Invoke() (js/src/xpconnect/src/xpcwrappednative.cpp:2993)
XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) (js/src/xpconnect/src/xpcwrappednative.cpp:2282)
XPC_WN_CallMethod(JSContext*, JSObject*, unsigned int, long*, long*) (js/src/xpconnect/src/xpcwrappednativejsops.cpp:1770)
js_Invoke (js/src/jsinterp.cpp:835)
Bug 279330 Part 2 removed the assertion:
https://hg.mozilla.org/mozilla-central/rev/52e2737720a5
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.