[Webkit-unassigned] [Bug 140261] Null ptr crash in WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::setBlock

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 11 09:25:31 PST 2015


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

zalan <zalan at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #246320|review?                     |review-
              Flags|                            |

--- Comment #17 from zalan <zalan at apple.com> ---
Comment on attachment 246320
  --> https://bugs.webkit.org/attachment.cgi?id=246320
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=246320&action=review

> Source/WebCore/rendering/RenderBlock.cpp:1749
> +    if (!shouldPaintSelectionGaps() || !repaintContainer)

Judging by the stacktrace, I suspect the issue here is that we are in the detached tree state and the renderer (the <textarea> that we try to clear the selection from) has no block ancestor in this detached subtree.
Assume the <textarea> itself is the repaint container (so we have a valid reapintContainer), we'd still crash when we try to dereference its (non-existing) containing block. (see containingBlockForFixedPosition/containingBlockForAbsolutePosition/containingBlockForObjectInFlow)

-- 
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/20150211/96822f8e/attachment-0002.html>


More information about the webkit-unassigned mailing list