Open Bug 1843361 Opened 10 months ago Updated 10 months ago

Crash in [@ mozilla::EditorBase::InitializeSelection]

Categories

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

defect

Tracking

()

ASSIGNED

People

(Reporter: sefeng, Assigned: masayuki)

References

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/8718934d-e183-46d4-ac90-5977b0230703

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(IsTextEditor())

Top 10 frames of crashing thread:

0  xul.dll  mozilla::EditorBase::InitializeSelection  editor/libeditor/EditorBase.cpp:5447
1  xul.dll  mozilla::EditorBase::PostCreateInternal  editor/libeditor/EditorBase.cpp:422
2  xul.dll  mozilla::HTMLEditor::PostCreate  editor/libeditor/HTMLEditor.cpp:491
3  xul.dll  nsEditingSession::SetupEditorOnWindow  editor/composer/nsEditingSession.cpp:435
4  xul.dll  nsEditingSession::MakeWindowEditable  editor/composer/nsEditingSession.cpp:165
5  xul.dll  mozilla::dom::Document::EditingStateChanged  dom/base/Document.cpp:6201
6  xul.dll  mozilla::dom::Document::DeferredContentEditableCountChange  dom/base/Document.cpp:6361
7  xul.dll  mozilla::dom::DeferredContentEditableCountChangeEvent::Run  dom/base/Document.cpp:6301
8  xul.dll  nsContentUtils::RemoveScriptBlocker  dom/base/nsContentUtils.cpp:6042
8  xul.dll  mozilla::dom::Document::EndUpdate  dom/base/Document.cpp:7967

I wonder if this is related to Bug 1817723, so needinfo myself to take a look.

Flags: needinfo?(sefeng)

Actually this is not :)

Masayuki, thoughts on the assertion?

Flags: needinfo?(sefeng) → needinfo?(masayuki)
Severity: -- → S3

I don't have concrete idea how to reproduce it, but I could fix the assertion failure.
(But perhaps, we should add other MOZ_DIAGNOSTIC_ASSERTs when the odd state is created.)

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)
OS: Windows 11 → All
Priority: -- → P3
Hardware: Unspecified → All
You need to log in before you can comment on or make changes to this bug.