Closed Bug 1436295 Opened 2 years ago Closed 2 years ago

Hits warning assertion The offset is out of bounds: '!mParent || mOffset.value() <= mParent->Length()' EditorDOMPoint.h, line 373 in HTMLEditRules::WillInsertBreak()

Categories

(Core :: Editor, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

No description provided.
> GECKO(80644) | [Child 14372, Main Thread] ###!!! ASSERTION: The offset is out of bounds: '!mParent || mOffset.value() <= mParent->Length()', file c:\mozilla\fx64-dbg\dist\include\mozilla/EditorDOMPoint.h, line 373
> GECKO(80644) | #01: mozilla::HTMLEditRules::WillInsertBreak (c:\mozilla\src\editor\libeditor\htmleditrules.cpp:1793)
> GECKO(80644) | #02: mozilla::HTMLEditRules::WillDoAction (c:\mozilla\src\editor\libeditor\htmleditrules.cpp:639)
> GECKO(80644) | #03: mozilla::TextEditor::InsertLineBreak (c:\mozilla\src\editor\libeditor\texteditor.cpp:746)
> GECKO(80644) | #04: mozilla::TextEditor::TypedText (c:\mozilla\src\editor\libeditor\texteditor.cpp:408)
> GECKO(80644) | #05: mozilla::HTMLEditor::TypedText (c:\mozilla\src\editor\libeditor\htmleditor.cpp:958)
> GECKO(80644) | #06: mozilla::HTMLEditor::HandleKeyPressEvent (c:\mozilla\src\editor\libeditor\htmleditor.cpp:681)
> GECKO(80644) | #07: mozilla::EditorEventListener::KeyPress (c:\mozilla\src\editor\libeditor\editoreventlistener.cpp:608)
Comment on attachment 8949284 [details]
Bug 1436295 - HTMLEditRules::WillInsertBreak() should cancel resetting EditorDOMPoint when HTMLEditRules::ReturnInParagraph() splits DOM node around the point

https://reviewboard.mozilla.org/r/218660/#review224702
Attachment #8949284 - Flags: review?(m_kato) → review+
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/e05678d156d9
HTMLEditRules::WillInsertBreak() should cancel resetting EditorDOMPoint when HTMLEditRules::ReturnInParagraph() splits DOM node around the point r=m_kato
https://hg.mozilla.org/mozilla-central/rev/e05678d156d9
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.