Open Bug 1421743 Opened 2 years ago Updated 2 years ago

Assertion failure: mStartOfRightNode.Offset() == mNewLeftNode->Length(), at /src/editor/libeditor/SplitNodeTransaction.cpp:92

Categories

(Core :: DOM: Editor, defect, P3)

59 Branch
defect

Tracking

()

Tracking Status
firefox59 --- wontfix
firefox60 --- affected
firefox61 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase.html
Assertion failure: mStartOfRightNode.Offset() == mNewLeftNode->Length(), at /src/editor/libeditor/SplitNodeTransaction.cpp:92

#0 mozilla::SplitNodeTransaction::DoTransaction() /src/editor/libeditor/SplitNodeTransaction.cpp:92:5
#1 nsTransactionManager::BeginTransaction(nsITransaction*, nsISupports*) /src/editor/txmgr/nsTransactionManager.cpp:639:21
#2 nsTransactionManager::DoTransaction(nsITransaction*) /src/editor/txmgr/nsTransactionManager.cpp:72:8
#3 mozilla::EditorBase::DoTransaction(mozilla::dom::Selection*, nsITransaction*) /src/editor/libeditor/EditorBase.cpp:762:20
#4 mozilla::EditorBase::SplitNode(mozilla::EditorDOMPointBase<nsINode*, nsIContent*> const&, mozilla::ErrorResult&) /src/editor/libeditor/EditorBase.cpp:1566:12
#5 mozilla::EditorBase::SplitNodeDeep(nsIContent&, mozilla::EditorDOMPointBase<nsINode*, nsIContent*> const&, mozilla::SplitAtEdges) /src/editor/libeditor/EditorBase.cpp:4089:9
#6 mozilla::HTMLEditRules::BustUpInlinesAtRangeEndpoints(mozilla::RangeItem&) /src/editor/libeditor/HTMLEditRules.cpp:6439:19
#7 mozilla::HTMLEditRules::GetNodesForOperation(nsTArray<RefPtr<nsRange> >&, nsTArray<mozilla::OwningNonNull<nsINode> >&, EditAction, mozilla::HTMLEditRules::TouchContent) /src/editor/libeditor/HTMLEditRules.cpp:6119:12
#8 mozilla::HTMLEditRules::GetNodesFromSelection(mozilla::dom::Selection&, EditAction, nsTArray<mozilla::OwningNonNull<nsINode> >&, mozilla::HTMLEditRules::TouchContent) /src/editor/libeditor/HTMLEditRules.cpp:6633:17
#9 mozilla::HTMLEditRules::WillOutdent(mozilla::dom::Selection&, bool*, bool*) /src/editor/libeditor/HTMLEditRules.cpp:4454:10
#10 mozilla::HTMLEditRules::WillDoAction(mozilla::dom::Selection*, mozilla::RulesInfo*, bool*, bool*) /src/editor/libeditor/HTMLEditRules.cpp:661:14
#11 mozilla::HTMLEditor::Indent(nsTSubstring<char16_t> const&) /src/editor/libeditor/HTMLEditor.cpp:2203:24
#12 nsOutdentCommand::DoCommand(char const*, nsISupports*) /src/editor/composer/nsComposerCommands.cpp:554:22
#13 nsControllerCommandTable::DoCommand(char const*, nsISupports*) /src/dom/commandhandler/nsControllerCommandTable.cpp:147:26
#14 nsBaseCommandController::DoCommand(char const*) /src/dom/commandhandler/nsBaseCommandController.cpp:136:25
#15 nsCommandManager::DoCommand(char const*, nsICommandParams*, mozIDOMWindowProxy*) /src/dom/commandhandler/nsCommandManager.cpp:212:22
#16 nsHTMLDocument::ExecCommand(nsTSubstring<char16_t> const&, bool, nsTSubstring<char16_t> const&, nsIPrincipal&, mozilla::ErrorResult&) /src/dom/html/nsHTMLDocument.cpp:3276:18
#17 mozilla::dom::HTMLDocumentBinding::execCommand(JSContext*, JS::Handle<JSObject*>, nsHTMLDocument*, JSJitMethodCallArgs const&) /src/obj-firefox/dom/bindings/HTMLDocumentBinding.cpp:854:21
#18 mozilla::dom::GenericBindingMethod(JSContext*, unsigned int, JS::Value*) /src/dom/bindings/BindingUtils.cpp:3040:13
#19 0x7f14463c3ca0  (<unknown module>)
Flags: in-testsuite?
Attached file prefs.js
helps with repro
Priority: -- → P3
Duplicate of this bug: 1450165
You need to log in before you can comment on or make changes to this bug.