[Webkit-unassigned] [Bug 208115] Nullptr crash in WebCore::canHaveChildrenForEditing via CompositeEditCommand::insertNode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 25 09:04:41 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=208115

--- Comment #6 from Jack <shihchieh_lee at apple.com> ---
Thanks! Yes, in this case the anchorType is PositionIsOffsetInAnchor, so container node is also m_anchorNode.

(lldb) p anchorType()
(WebCore::Position::AnchorType) $3 = PositionIsOffsetInAnchor

(In reply to Ryosuke Niwa from comment #4)
> Comment on attachment 391591 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=391591&action=review
> 
> > Source/WebCore/editing/InsertListCommand.cpp:341
> > -    if (start.isNull() || end.isNull())
> > +    if (start.isNull() || end.isNull() || !start.deepEquivalent().deprecatedNode()->hasEditableStyle())
> 
> Please check the eatability of start.deepEquivalent().containerNode()
> instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200225/5ed4ac66/attachment.htm>


More information about the webkit-unassigned mailing list