Crash in [@ mozilla::WSRunObject::ReplacePreviousNBSPIfUnncessary]
Categories
(Core :: DOM: Editor, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox73 | --- | unaffected |
firefox74 | --- | unaffected |
firefox75 | + | fixed |
People
(Reporter: calixte, Assigned: masayuki)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file)
This bug is for crash report bp-791ab540-2916-429a-a6f8-4cc820200303.
Top 10 frames of crashing thread:
0 XUL mozilla::WSRunObject::ReplacePreviousNBSPIfUnncessary editor/libeditor/WSRunObject.cpp:1935
1 XUL mozilla::WSRunObject::InsertText editor/libeditor/WSRunObject.cpp:320
2 XUL mozilla::HTMLEditor::HandleInsertText editor/libeditor/HTMLEditSubActionHandler.cpp:1557
3 XUL mozilla::EditorBase::InsertTextAsSubAction editor/libeditor/EditorBase.cpp:5519
4 XUL mozilla::TextEditor::OnInputText editor/libeditor/TextEditor.cpp:411
5 XUL mozilla::HTMLEditor::HandleKeyPressEvent editor/libeditor/HTMLEditor.cpp:756
6 XUL mozilla::EditorEventListener::KeyPress editor/libeditor/EditorEventListener.cpp:551
7 XUL mozilla::HTMLEditorEventListener::HandleEvent editor/libeditor/HTMLEditorEventListener.cpp:98
8 XUL mozilla::EventListenerManager::HandleEventSubType dom/events/EventListenerManager.cpp:1079
9 XUL mozilla::EventListenerManager::HandleEventInternal dom/events/EventListenerManager.cpp:1271
There are 3 crashes (from 2 installations) in nightly 75 with buildid 20200303095030. In analyzing the backtrace, the regression may have been introduced by patch [1] to fix bug 1618089.
[1] https://hg.mozilla.org/mozilla-central/rev?node=61f680923525
Assignee | ||
Comment 1•4 years ago
|
||
Ah, simple mistake.
Assignee | ||
Comment 2•4 years ago
|
||
I forgot to add this check only here. (I also checked again for all similar
methods' callers.) So, if the point is end of a text node (i.e., offset equals
its length), IsCharNBSP()
refers wrong address.
I cannot find a way to reproduce this crash, therefore, this patch does not
have new crashtest.
(Additionally, this corrects the misspell in the method name.)
Updated•4 years ago
|
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/01e8e25d291e Make `WSRunObject::ReplacePreviousNBSPIfUnnecessary()` check `IsEndOfContainer()` before calling `IsCharNBSP()` r=m_kato
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
Comment 5•4 years ago
|
||
Hi there Masayuki, is there something that QA can verify here? If so, could you please provide some steps? Thanks!
Assignee | ||
Comment 6•4 years ago
|
||
(In reply to Catalin Sasca, QA [:csasca] from comment #5)
Hi there Masayuki, is there something that QA can verify here? If so, could you please provide some steps? Thanks!
I have no idea. If I investigate with much time, I'll probably find it, but I don't have much time for this...
Updated•4 years ago
|
Description
•