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

RESOLVED WORKSFORME

Status

()

--
minor
RESOLVED WORKSFORME
10 years ago
5 years ago

People

(Reporter: mats, Unassigned)

Tracking

({assertion})

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

10 years ago
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)

Comment 2

5 years ago
Bug 279330 Part 2 removed the assertion:
https://hg.mozilla.org/mozilla-central/rev/52e2737720a5
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.