Open Bug 1534151 Opened 1 year ago Updated 1 year ago

Assertion failure: SelectionRefPtr()->GetAnchorFocusRange() && SelectionRefPtr()->GetAnchorFocusRange()->Collapsed() (Selection not collapsed after delete), at /builds/worker/workspace/build/src/editor/libeditor/TextEditor.cpp:909

Categories

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

defect

Tracking

()

Tracking Status
firefox67 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached file testcase.html

Assertion failure: SelectionRefPtr()->GetAnchorFocusRange() && SelectionRefPtr()->GetAnchorFocusRange()->Collapsed() (Selection not collapsed after delete), at src/editor/libeditor/TextEditor.cpp:909

0|0|libxul.so|mozilla::TextEditor::DeleteSelectionAndPrepareToCreateNode()|hg:hg.mozilla.org/mozilla-central:editor/libeditor/TextEditor.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|907|0x0
0|1|libxul.so|mozilla::HTMLEditor::DoInsertHTMLWithContext(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, mozilla::dom::Document*, mozilla::EditorDOMPointBase<nsCOMPtr<nsINode>, nsCOMPtr<nsIContent> > const&, bool, bool, bool)|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditorDataTransfer.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|279|0x8
0|2|libxul.so|mozilla::HTMLEditor::InsertHTML(nsTSubstring<char16_t> const&)|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditorDataTransfer.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|183|0x23
0|3|libxul.so|mozilla::InsertHTMLCommand::DoCommandParams(char const*, nsICommandParams*, nsISupports*)|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditorCommands.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1323|0xb
0|4|libxul.so|nsControllerCommandTable::DoCommandParams(char const*, nsICommandParams*, nsISupports*)|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsControllerCommandTable.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|155|0x1c
0|5|libxul.so|nsBaseCommandController::DoCommandWithParams(char const*, nsICommandParams*)|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsBaseCommandController.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|138|0x1c
0|6|libxul.so|nsCommandManager::DoCommand(char const*, nsICommandParams*, mozIDOMWindowProxy*)|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsCommandManager.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|197|0x17
0|7|libxul.so|nsHTMLDocument::ExecCommand(nsTSubstring<char16_t> const&, bool, nsTSubstring<char16_t> const&, nsIPrincipal&, mozilla::ErrorResult&)|hg:hg.mozilla.org/mozilla-central:dom/html/nsHTMLDocument.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|2562|0x27
0|8|libxul.so|mozilla::dom::HTMLDocument_Binding::execCommand|s3:gecko-generated-sources:ff3d7f62b63f3ce0cf6cea0184588ec1a6408fbafa5bc5f00360217ded2e92a7433c3d7f047508c10fd313711da1f20424fa38bd0d7f06ac7359b5f8b46480af/dom/bindings/HTMLDocumentBinding.cpp:|619|0x2e
0|9|libxul.so|bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*)|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|3144|0x9
0|10|libxul.so|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|442|0x6
0|11|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|534|0xf
0|12|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|589|0xd
0|13|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|593|0xf
0|14|libxul.so|js::RunScript(JSContext*, js::RunState&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|422|0xb
0|15|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|562|0xf
0|16|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|589|0xd
0|17|libxul.so|js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|605|0x5
0|18|libxul.so|JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>)|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|2623|0x1c
0|19|libxul.so|mozilla::dom::EventHandlerNonNull::Call(JSContext*, JS::Handle<JS::Value>, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&)|s3:gecko-generated-sources:567c094906a0cd465c0be7d222b9f9d6eaef6d6c4b470e7ff5e2adbf7ff78ac073d503493bc4313a06702f565fa1e515f296dc718b83cb91504e73e4c75cd488/dom/bindings/EventHandlerBinding.cpp:|266|0x5
0|20|libxul.so|mozilla::JSEventHandler::HandleEvent(mozilla::dom::Event*)|s3:gecko-generated-sources:3760fb8938acb537e28af191191b3b28eae59c21a2b0dcc49f0990b2613d2b29a3f705864d9a9ad5a160e5faa013e2d0b447215b3fc0b25795d7ebbd0dc4ce29/dist/include/mozilla/dom/EventHandlerBinding.h:|363|0x23
0|21|libxul.so|mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1042|0x14
0|22|libxul.so|mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1237|0x19
0|23|libxul.so|mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.h:67424fa758d40134fdca363ec9a7a992aa92403f|351|0x6
0|24|libxul.so|mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|553|0x12
0|25|libxul.so|mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1049|0x1a
0|26|libxul.so|mozilla::EventDispatcher::DispatchDOMEvent(nsISupports*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsPresContext*, nsEventStatus*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1149|0x19
0|27|libxul.so|nsINode::DispatchEvent(mozilla::dom::Event&, mozilla::dom::CallerType, mozilla::ErrorResult&)|hg:hg.mozilla.org/mozilla-central:dom/base/nsINode.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1025|0x5
0|28|libxul.so|nsContentUtils::DispatchEvent(mozilla::dom::Document*, nsISupports*, nsTSubstring<char16_t> const&, mozilla::CanBubble, mozilla::Cancelable, mozilla::Composed, mozilla::Trusted, bool*, mozilla::ChromeOnlyDispatch)|hg:hg.mozilla.org/mozilla-central:dom/base/nsContentUtils.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|4054|0x30
0|29|libxul.so|nsContentUtils::DispatchTrustedEvent(mozilla::dom::Document*, nsISupports*, nsTSubstring<char16_t> const&, mozilla::CanBubble, mozilla::Cancelable, mozilla::Composed, bool*)|hg:hg.mozilla.org/mozilla-central:dom/base/nsContentUtils.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|4025|0x19
0|30|libxul.so|mozilla::dom::HTMLMediaElement::DispatchEvent(nsTSubstring<char16_t> const&)|hg:hg.mozilla.org/mozilla-central:dom/html/HTMLMediaElement.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|5777|0x25
0|31|libxul.so|mozilla::SchedulerGroup::Runnable::Run()|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|295|0x15
0|32|libxul.so|nsThread::ProcessNextEvent(bool, bool*)|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|1179|0x15
0|33|libxul.so|NS_ProcessNextEvent(nsIThread*, bool)|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|482|0x11
0|34|libxul.so|mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|88|0xa
0|35|libxul.so|MessageLoop::RunInternal()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:67424fa758d40134fdca363ec9a7a992aa92403f|315|0x17
0|36|libxul.so|MessageLoop::Run()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:67424fa758d40134fdca363ec9a7a992aa92403f|308|0x8
0|37|libxul.so|nsBaseAppShell::Run()|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|137|0xd
0|38|libxul.so|XRE_RunAppShell()|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|911|0x11
0|39|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|238|0x5
0|40|libxul.so|MessageLoop::RunInternal()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:67424fa758d40134fdca363ec9a7a992aa92403f|315|0x17
0|41|libxul.so|MessageLoop::Run()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:67424fa758d40134fdca363ec9a7a992aa92403f|308|0x8
0|42|libxul.so|XRE_InitChildProcess(int, char**, XREChildData const*)|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|749|0xc
0|43|firefox-bin|content_process_main(mozilla::Bootstrap*, int, char**)|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|49|0x14
0|44|firefox-bin|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:67424fa758d40134fdca363ec9a7a992aa92403f|265|0x11
0|45|libc-2.27.so||||0x21b97
0|46|firefox-bin|MOZ_ReportCrash|hg:hg.mozilla.org/mozilla-central:mfbt/Assertions.h:67424fa758d40134fdca363ec9a7a992aa92403f|184|0x5
Flags: in-testsuite?

assertion only.

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.