Open Bug 1413278 Opened 7 years ago Updated 2 years ago

Assertion failure: !mRootContent->IsNodeOfType(nsINode::eTEXT) [@ mozilla::ContentEventHandler::SetRawRangeFromFlatTextOffset]

Categories

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

58 Branch
defect

Tracking

()

Tracking Status
firefox-esr52 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached file test_case.html
Assertion failure: !mRootContent->IsNodeOfType(nsINode::eTEXT), at /src/dom/events/ContentEventHandler.cpp:1331

#0 mozilla::ContentEventHandler::SetRawRangeFromFlatTextOffset(mozilla::ContentEventHandler::RawRange*, unsigned int, unsigned int, mozilla::LineBreakType, bool, unsigned int*, nsIContent**) /src/dom/events/ContentEventHandler.cpp:1167:7
#1 mozilla::ContentEventHandler::OnQueryTextContent(mozilla::WidgetQueryContentEvent*) /src/dom/events/ContentEventHandler.cpp:1548:8
#2 mozilla::IMEContentObserver::HandleQueryContentEvent(mozilla::WidgetQueryContentEvent*) /src/dom/events/IMEContentObserver.cpp:833:25
#3 mozilla::EventStateManager::HandleQueryContentEvent(mozilla::WidgetQueryContentEvent*) /src/dom/events/EventStateManager.cpp:920:22
#4 mozilla::EventStateManager::PreHandleEvent(nsPresContext*, mozilla::WidgetEvent*, nsIFrame*, nsIContent*, nsEventStatus*) /src/dom/events/EventStateManager.cpp:602:5
#5 mozilla::PresShell::HandleEventInternal(mozilla::WidgetEvent*, nsEventStatus*, bool) /src/layout/base/PresShell.cpp:7760:19
#6 mozilla::PresShell::HandleEvent(nsIFrame*, mozilla::WidgetGUIEvent*, bool, nsEventStatus*, nsIContent**) /src/layout/base/PresShell.cpp:7444:12
#7 nsViewManager::DispatchEvent(mozilla::WidgetGUIEvent*, nsView*, nsEventStatus*) /src/view/nsViewManager.cpp:812:14
#8 nsView::HandleEvent(mozilla::WidgetGUIEvent*, bool) /src/view/nsView.cpp:1140:9
#9 mozilla::widget::PuppetWidget::DispatchEvent(mozilla::WidgetGUIEvent*, nsEventStatus&) /src/widget/PuppetWidget.cpp:395:35
#10 mozilla::ContentCacheInChild::CacheText(nsIWidget*, mozilla::widget::IMENotification const*) /src/widget/ContentCache.cpp:267:12
#11 mozilla::ContentCacheInChild::CacheAll(nsIWidget*, mozilla::widget::IMENotification const*) /src/widget/ContentCache.cpp:150:7
#12 mozilla::widget::PuppetWidget::NotifyIMEOfFocusChange(mozilla::widget::IMENotification const&) /src/widget/PuppetWidget.cpp:782:11
#13 mozilla::widget::TextEventDispatcher::NotifyIME(mozilla::widget::IMENotification const&) /src/widget/TextEventDispatcher.cpp:469:27
#14 nsBaseWidget::NotifyIME(mozilla::widget::IMENotification const&) /src/widget/nsBaseWidget.cpp:1828:43
#15 mozilla::IMEStateManager::NotifyIME(mozilla::widget::IMENotification const&, nsIWidget*, mozilla::dom::TabParent*) /src/dom/events/IMEStateManager.cpp:1681:22
#16 mozilla::IMEContentObserver::IMENotificationSender::SendFocusSet() /src/dom/events/IMEContentObserver.cpp:2012:3
#17 mozilla::IMEContentObserver::IMENotificationSender::Run() /src/dom/events/IMEContentObserver.cpp:1892:5
#18 mozilla::IMEContentObserver::TryToFlushPendingNotifications(bool) /src/dom/events/IMEContentObserver.cpp:1759:17
#19 mozilla::EditorEventListener::Focus(mozilla::InternalFocusEvent*) /src/editor/libeditor/EditorEventListener.cpp:1152:3
#20 mozilla::EditorEventListener::HandleEvent(nsIDOMEvent*) /src/editor/libeditor/EditorEventListener.cpp:472:14
#21 mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, nsIDOMEvent*, mozilla::dom::EventTarget*) /src/dom/events/EventListenerManager.cpp:1118:51
#22 mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, nsIDOMEvent**, mozilla::dom::EventTarget*, nsEventStatus*) /src/dom/events/EventListenerManager.cpp:1293:20
#23 mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&) /src/dom/events/EventDispatcher.cpp:313:17
#24 mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&) /src/dom/events/EventDispatcher.cpp:462:16
#25 mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, nsIDOMEvent*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*) /src/dom/events/EventDispatcher.cpp:826:9
#26 FocusBlurEvent::Run() /src/dom/base/nsFocusManager.cpp:2079:12
#27 nsContentUtils::AddScriptRunner(already_AddRefed<nsIRunnable>) /src/dom/base/nsContentUtils.cpp:5806:13
#28 nsContentUtils::AddScriptRunner(nsIRunnable*) /src/dom/base/nsContentUtils.cpp:5813:3
#29 nsFocusManager::FireFocusOrBlurEvent(mozilla::EventMessage, nsIPresShell*, nsISupports*, bool, bool, mozilla::dom::EventTarget*) /src/dom/base/nsFocusManager.cpp:2252:5
#30 nsFocusManager::SendFocusOrBlurEvent(mozilla::EventMessage, nsIPresShell*, nsIDocument*, nsISupports*, unsigned int, bool, bool, mozilla::dom::EventTarget*) /src/dom/base/nsFocusManager.cpp:2217:3
#31 nsFocusManager::Focus(nsPIDOMWindowOuter*, nsIContent*, unsigned int, bool, bool, bool, bool, nsIContent*) /src/dom/base/nsFocusManager.cpp:1942:7
#32 nsFocusManager::WindowRaised(mozIDOMWindowProxy*) /src/dom/base/nsFocusManager.cpp:776:3
#33 nsWebBrowser::Activate() /src/toolkit/components/browser/nsWebBrowser.cpp:1825:16
#34 mozilla::dom::TabChild::RecvActivate() /src/dom/ipc/TabChild.cpp:1494:12
#35 mozilla::dom::PContentChild::OnMessageReceived(IPC::Message const&) /src/obj-firefox/ipc/ipdl/PContentChild.cpp:7619:20
#36 mozilla::dom::ContentChild::OnMessageReceived(IPC::Message const&) /src/dom/ipc/ContentChild.cpp:3690:25
#37 mozilla::ipc::MessageChannel::DispatchAsyncMessage(IPC::Message const&) /src/ipc/glue/MessageChannel.cpp:2119:25
#38 mozilla::ipc::MessageChannel::DispatchMessage(IPC::Message&&) /src/ipc/glue/MessageChannel.cpp:2049:17
#39 mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::MessageChannel::MessageTask&) /src/ipc/glue/MessageChannel.cpp:1895:5
#40 mozilla::ipc::MessageChannel::MessageTask::Run() /src/ipc/glue/MessageChannel.cpp:1928:15
#41 nsThread::ProcessNextEvent(bool, bool*) /src/xpcom/threads/nsThread.cpp:1037:14
#42 NS_ProcessNextEvent(nsIThread*, bool) /src/xpcom/threads/nsThreadUtils.cpp:513:10
#43 mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /src/ipc/glue/MessagePump.cpp:97:21
#44 MessageLoop::RunInternal() /src/ipc/chromium/src/base/message_loop.cc:326:10
#45 MessageLoop::Run() /src/ipc/chromium/src/base/message_loop.cc:299:3
#46 nsBaseAppShell::Run() /src/widget/nsBaseAppShell.cpp:158:27
#47 XRE_RunAppShell() /src/toolkit/xre/nsEmbedFunctions.cpp:877:22
#48 mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /src/ipc/glue/MessagePump.cpp:269:9
#49 MessageLoop::RunInternal() /src/ipc/chromium/src/base/message_loop.cc:326:10
#50 MessageLoop::Run() /src/ipc/chromium/src/base/message_loop.cc:299:3
#51 XRE_InitChildProcess(int, char**, XREChildData const*) /src/toolkit/xre/nsEmbedFunctions.cpp:703:34
#52 content_process_main(mozilla::Bootstrap*, int, char**) /src/browser/app/../../ipc/contentproc/plugin-container.cpp:63:30
#53 main /src/browser/app/nsBrowserApp.cpp:280:18
#54 __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291
#55 _start (firefox+0x41ebe4)
Flags: in-testsuite?
Goes back more than a year, which is as far back as mozregression can bisect debug builds.
Has Regression Range: --- → no
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: